directories.zsh 536 B

123456789101112131415161718192021222324252627282930
  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 -- -='cd -'
  10. alias 1='cd -'
  11. alias 2='cd -2'
  12. alias 3='cd -3'
  13. alias 4='cd -4'
  14. alias 5='cd -5'
  15. alias 6='cd -6'
  16. alias 7='cd -7'
  17. alias 8='cd -8'
  18. alias 9='cd -9'
  19. alias md='mkdir -p'
  20. alias rd=rmdir
  21. alias d='dirs -v | head -10'
  22. # List directory contents
  23. alias lsa='ls -lah'
  24. alias l='ls -lah'
  25. alias ll='ls -lh'
  26. alias la='ls -lAh'