# vim bindings bindkey -v export KEYTIMEOUT=1 # Use vim cli mode bindkey '^P' up-history bindkey '^N' down-history # backspace and ^h working even after # returning from command mode bindkey '^?' backward-delete-char bindkey '^h' backward-delete-char # ctrl-w removed word backwards bindkey '^w' backward-kill-word # ctrl-r starts searching history backward bindkey '^r' history-incremental-search-backward if [ "light" = "$THEME_SWITCHER" ]; then ZSH_THEME="sunrise" else ZSH_THEME="agnoster" fi HIST_STAMPS="dd.mm.yyyy" COMPLETION_WAITING_DOTS="true" export EDITOR="vim" export goschneider="$HOME/go/src/git.webschneider.org" source $HOME/.dotfiles/zsh/aliases.zsh # Shell completion for gulp if hash gulp 2&> /dev/null; then eval "$(gulp --completion=zsh)" fi # fzf settings if hash ag 2&> /dev/null; then # Use ag instead of find and exclude .gitignored files export FZF_DEFAULT_COMMAND='ag -g ""' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" fi swth() { if [ "$THEME_SWITCHER" = "light" ]; then unset THEME_SWITCHER source ~/.zshrc else export THEME_SWITCHER="light" source ~/.zshrc fi }