2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-13 01:10:27 +00:00
steffen-dotfiles/zshrc

73 lines
1.7 KiB
Bash
Raw Normal View History

2013-11-23 19:00:03 +00:00
# Load the functions, aliases, function etc.
2014-12-16 17:21:41 +00:00
for file in ~/dotfiles/zsh/{exports,aliases,functions}; do
2013-07-19 17:17:05 +00:00
[ -r "$file" ] && source "$file"
done
unset file
# a nice prompt
autoload -U promptinit && promptinit
prompt pure
# completions
autoload -U compinit && compinit -C
autoload bashcompinit && bashcompinit
# autocomplete for the git alias
compdef g=git
2014-09-19 16:08:36 +00:00
compdef gf=git-flow
# case-insensitive (all),partial-word and then substring completion
2014-09-19 16:08:36 +00:00
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
unsetopt menu_complete # do not autoselect the first completion entry
unsetopt flowcontrol
setopt auto_menu # show completion menu on succesive tab press
setopt complete_in_word
setopt always_to_end
# history settings
if [ -z $HISTFILE ]; then
HISTFILE=$HOME/.zsh_history
fi
HISTSIZE=10000
SAVEHIST=10000
bindkey '\e[A' history-beginning-search-backward
bindkey '\e[B' history-beginning-search-forward
2015-07-10 15:05:25 +00:00
# easy vim/terminal switch
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z
setopt append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups # ignore duplication command history list
setopt hist_ignore_space
setopt hist_verify
setopt inc_append_history
setopt share_history # share command history data
# smart urls
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
# jobs
setopt long_list_jobs
2016-08-19 09:30:48 +00:00
# source some zsh plugins
source $HOME/dotfiles/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
2016-05-31 11:40:03 +00:00
source $HOME/dotfiles/zsh/zsh-completions/zsh-completions.plugin.zsh
2016-08-19 09:30:48 +00:00
# nice dircolors for ls
2016-08-19 09:26:10 +00:00
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
2014-09-19 16:08:36 +00:00
2014-11-19 11:08:43 +00:00
# fasd
eval "$(fasd --init auto)"
2016-05-31 11:40:03 +00:00
# nvm
2016-08-01 20:21:25 +00:00
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm