diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2021-07-21 15:05:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 15:05:28 +0200 |
commit | 2e6876e6c1109673db2527c4349fbdac0f1557fe (patch) | |
tree | 7e0028cede47398c74056c92af30c515bc8f9579 /zsh | |
parent | 26d393eacb0468edeed62befe365c1ae0752a680 (diff) | |
parent | cf3eefda31e98d4725a64000861a388ba7708c62 (diff) | |
download | dotfiles-2e6876e6c1109673db2527c4349fbdac0f1557fe.tar.gz |
Merge pull request #2 from eug-vs/feat/stow
feat!: move to GNU Stow, remove wiki
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..6746f4b --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,37 @@ +autoload -U colors && colors +PS1="%B%{$fg[white]%}[%{$fg[cyan]%}%n%{$fg[white]%}@%{$fg[green]%}%M %{$fg[yellow]%}%~%{$fg[white]%}]%{$reset_color%}$%b " +bindkey -e + +# History in cache directory: +HISTSIZE=10000 +SAVEHIST=10000 +HISTFILE=~/.cache/zsh/history + +# Completion +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) + +# Edit line in vim with ctrl-e: +autoload edit-command-line; zle -N edit-command-line +bindkey '^e' edit-command-line + +# Aliases +alias vi=nvim +alias vim=nvim +alias config='git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME' + +# Env +export LESS=R # Option to less so that git log/diff hide output after exit +export EDITOR=nvim +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + +export PATH=$PATH:~/.local/bin + + +# Syntax highlighting, must be last +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |