diff options
-rw-r--r-- | .config/zsh/.zshrc | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 1766e57..4234df4 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -1,23 +1,21 @@ -# plugins - fzf -# fzf is automatically picked up by /etc/profile on cygwin, but they're here on arch +# plugin - fzf +# arch puts these here if [[ -a /usr/share/fzf/key-bindings.zsh ]] && [[ -a /usr/share/fzf/completion.zsh ]]; then export FZF_DEFAULT_OPTS='--no-height --no-reverse' source /usr/share/fzf/key-bindings.zsh source /usr/share/fzf/completion.zsh fi -# magic cd +# magic navigation setopt autocd export CDPATH=".:$HOME:$HOME/devil:$HOME/src" - -# just enables a bit nicer life when copy/pasting commands from docs -setopt interactive_comments - -# dots go up alias -g ...='../..' alias -g ....='../../..' alias -g .....='../../../..' +# a bit nicer life when copy/pasting commands from docs +setopt interactive_comments + # aliases alias cls=clear alias config='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' @@ -29,11 +27,11 @@ function spacetotab () { mv "$1.tmp" "$1" } -source $ZDOTDIR/utils.zsh -source $ZDOTDIR/completion.zsh -source $ZDOTDIR/history.zsh -source $ZDOTDIR/vi-mode.zsh -source $ZDOTDIR/prompt.zsh +# load remaining config +for conf in "$ZDOTDIR/"*.zsh; do + source "${conf}" +done +unset conf # display a fortune when opening an interactive terminal tty -s && fortune $HOME/fortunes 2>/dev/null ||: |