2021-01-31 02:58:47 +02:00
|
|
|
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
|
|
|
|
|
# Initialization code that may require console input (password prompts, [y/n]
|
|
|
|
|
|
# confirmations, etc.) must go above this block; everything else may go below.
|
|
|
|
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
|
|
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
2017-11-17 12:10:40 +02:00
|
|
|
|
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
|
|
|
|
|
|
2016-04-21 15:57:16 +03:00
|
|
|
|
echo "Loading zgen..."
|
|
|
|
|
|
source ~/bin/zgen/zgen.zsh
|
2016-12-09 21:22:01 +02:00
|
|
|
|
source ~/bin/fixcolors
|
2018-06-09 10:12:17 +03:00
|
|
|
|
|
2016-04-21 15:57:16 +03:00
|
|
|
|
HIST_STAMPS="yyyy-mm-dd"
|
|
|
|
|
|
HISTFILE=~/.histfile
|
|
|
|
|
|
HISTSIZE=2000
|
|
|
|
|
|
SAVEHIST=2000
|
|
|
|
|
|
setopt appendhistory autocd extendedglob
|
2016-12-09 21:19:24 +02:00
|
|
|
|
|
|
|
|
|
|
if [ -x /usr/bin/xset ]; then
|
2018-06-09 10:12:17 +03:00
|
|
|
|
xset -b
|
2016-12-09 21:19:24 +02:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ${TERM} == st* ]]; then
|
|
|
|
|
|
if [ ! -e /usr/share/terminfo/s/st-256color ]; then
|
|
|
|
|
|
export TERM=xterm-256color
|
|
|
|
|
|
fi
|
|
|
|
|
|
fi
|
2021-01-31 02:58:47 +02:00
|
|
|
|
if [[ ${TERM} == foot ]]; then
|
|
|
|
|
|
export TERM=xterm-256color
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
2016-04-21 15:57:16 +03:00
|
|
|
|
unsetopt beep
|
|
|
|
|
|
bindkey -e
|
|
|
|
|
|
export LESS="-X -R -F"
|
2021-01-31 02:58:47 +02:00
|
|
|
|
|
2016-04-21 15:57:16 +03:00
|
|
|
|
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
2018-01-09 14:19:42 +02:00
|
|
|
|
export PAGER=most
|
2016-04-21 15:57:16 +03:00
|
|
|
|
export EDITOR=mg
|
|
|
|
|
|
|
|
|
|
|
|
autoload insert-composed-char
|
|
|
|
|
|
zle -N insert-composed-char
|
|
|
|
|
|
# bind it to some key (Ctrl+x in this example)
|
|
|
|
|
|
bindkey insert-composed-char
|
|
|
|
|
|
|
|
|
|
|
|
if ! zgen saved; then
|
|
|
|
|
|
echo "creating zgen save..."
|
|
|
|
|
|
|
|
|
|
|
|
# prezto options
|
|
|
|
|
|
zgen prezto editor key-bindings 'emacs'
|
|
|
|
|
|
# zgen prezto prompt theme 'off'
|
|
|
|
|
|
|
|
|
|
|
|
# prezto load
|
|
|
|
|
|
zgen prezto
|
|
|
|
|
|
zgen prezto terminal
|
|
|
|
|
|
zgen prezto ssh
|
|
|
|
|
|
zgen prezto python
|
|
|
|
|
|
zgen prezto git
|
|
|
|
|
|
zgen prezto history
|
|
|
|
|
|
zgen prezto tmux
|
|
|
|
|
|
zgen prezto syntax-highlighting
|
|
|
|
|
|
zgen prezto completion
|
|
|
|
|
|
|
|
|
|
|
|
# not prezto
|
|
|
|
|
|
zgen load Tarrasch/zsh-bd
|
|
|
|
|
|
zgen load Tarrasch/zsh-colors
|
|
|
|
|
|
zgen load supercrabtree/k
|
|
|
|
|
|
zgen save
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
2018-06-09 10:12:17 +03:00
|
|
|
|
#prompt fire 178 142 106 070 034
|
|
|
|
|
|
|
2016-04-21 15:57:16 +03:00
|
|
|
|
. ~/bin/aliases
|
2018-06-09 10:12:17 +03:00
|
|
|
|
if [[ ${TERM} == linux ]]; then
|
|
|
|
|
|
prompt pure
|
|
|
|
|
|
else
|
2020-01-01 21:05:11 +02:00
|
|
|
|
prompt powerlevel10k
|
2018-06-09 10:12:17 +03:00
|
|
|
|
fi
|
2016-04-21 15:57:16 +03:00
|
|
|
|
|
|
|
|
|
|
unalias rm
|
|
|
|
|
|
unalias mv
|
|
|
|
|
|
unalias cp
|
|
|
|
|
|
|
|
|
|
|
|
# STOP SHARING HISTORY
|
|
|
|
|
|
#unsetopt share_history
|
|
|
|
|
|
setopt NO_SHARE_HISTORY
|
|
|
|
|
|
setopt HIST_EXPIRE_DUPS_FIRST
|
|
|
|
|
|
|
2021-01-31 02:58:47 +02:00
|
|
|
|
cyan pyenv
|
|
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
|
|
|
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
|
|
|
|
|
if command -v pyenv 1>/dev/null 2>&1; then
|
|
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-09 21:22:01 +02:00
|
|
|
|
yellow All Done!
|
2021-01-31 02:58:47 +02:00
|
|
|
|
|
|
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
|
|
|
|
|