directories.zsh 595 B

123456789101112131415161718192021222324252627282930313233
  1. # Changing/making/removing directory
  2. setopt auto_pushd
  3. setopt pushd_ignore_dups
  4. setopt pushdminus
  5. alias -g ...='../..'
  6. alias -g ....='../../..'
  7. alias -g .....='../../../..'
  8. alias -g ......='../../../../..'
  9. alias 1='cd -'
  10. alias 2='cd -2'
  11. alias 3='cd -3'
  12. alias 4='cd -4'
  13. alias 5='cd -5'
  14. alias 6='cd -6'
  15. alias 7='cd -7'
  16. alias 8='cd -8'
  17. alias 9='cd -9'
  18. alias md='mkdir -p'
  19. alias rd=rmdir
  20. alias d='dirs -v | head -10'
  21. # List directory contents
  22. alias lsa='ls -lah'
  23. alias l='ls -la'
  24. alias ll='ls -l'
  25. alias la='ls -lA'
  26. # Push and pop directories on directory stack
  27. alias pu='pushd'
  28. alias po='popd'