dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

directories.zsh (333B)


      1 # Changing/making/removing directory
      2 setopt auto_pushd
      3 setopt pushd_ignore_dups
      4 setopt pushdminus
      5 
      6 alias -g ...='../..'
      7 alias -g ....='../../..'
      8 alias -g .....='../../../..'
      9 alias -g ......='../../../../..'
     10 
     11 alias -- -='cd -'
     12 
     13 function d () {
     14   if [[ -n $1 ]]; then
     15     dirs "$@"
     16   else
     17     dirs -v | head -10
     18   fi
     19 }
     20 compdef _dirs d