All of my important config files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

55 lines
1.2 KiB

# 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 rg 2&> /dev/null; then
# Use ripgrep instead of find and exclude .gitignored files
export FZF_DEFAULT_COMMAND='rg --files'
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
}