my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
617 B

3 years ago
  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 -1'
  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. function d () {
  22. if [[ -n $1 ]]; then
  23. dirs "$@"
  24. else
  25. dirs -v | head -n 10
  26. fi
  27. }
  28. compdef _dirs d
  29. # List directory contents
  30. alias lsa='ls -lah'
  31. alias l='ls -lah'
  32. alias ll='ls -lh'
  33. alias la='ls -lAh'