X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=69b19df10d66861c06dec31627b7b4e4e9203874;hb=dc5e55f9968b8dfdd5d7287732489091fbd11ee2;hp=a13c020e8fd2366422a869f626defb9c5ecf1aba;hpb=c43fcb07b3521655b4b44dea93c9acff64baeb8c;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index a13c020..69b19df 100644 --- a/zsh/rc +++ b/zsh/rc @@ -31,6 +31,16 @@ setopt extendedglob setopt ignoreeof +# FUNCTION SETTINGS + +# Set correct fpath to allow loading my functions (including completion +# functions). +fpath=(~/.zsh/functions $fpath) +# Autoload my functions (except completion functions and hidden files). Thanks +# to caphuso from the Zsh example files for this idea. +autoload ${fpath[1]}/^_*(:t) + + # HISTORY SETTINGS # Use history and store it in ~/.zsh/history. @@ -197,7 +207,7 @@ zstyle ':completion:*:unset:*' ignore-line yes zstyle ':completion:*:(hg|git)*:*' ignore-line yes -# ALIAS AND FUNCTION SETTINGS +# CUSTOM ALIASES AND FUNCTIONS # Simplify calls to less, automatically redirects all output. alias -g L='2>&1 | less' @@ -262,13 +272,6 @@ function ll() { la -l $* } -# Set correct fpath to allow loading my functions (including completion -# functions). -fpath=(~/.zsh/functions $fpath) -# Autoload my functions (except completion functions). Thanks to caphuso from -# the Zsh example files for this idea. -autoload ${fpath[1]}/^_*(:t) - # If ^C is pressed while typing a command, add it to the history so it can be # easily retrieved later and then abort like ^C normally does. This is useful # when I want to abort an command to do something in between and then finish