aliases.zsh 650 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Push and pop directories on directory stack
  2. alias pu='pushd'
  3. alias po='popd'
  4. # Basic directory operations
  5. alias ...='cd ../..'
  6. alias -- -='cd -'
  7. # Super user
  8. alias _='sudo'
  9. alias please='sudo'
  10. #alias g='grep -in'
  11. # Show history
  12. if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
  13. then
  14. alias history='fc -fl 1'
  15. elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
  16. then
  17. alias history='fc -El 1'
  18. elif [ "$HIST_STAMPS" = "yyyy-mm-dd" ]
  19. then
  20. alias history='fc -il 1'
  21. else
  22. alias history='fc -l 1'
  23. fi
  24. # List direcory contents
  25. alias lsa='ls -lah'
  26. alias l='ls -lah'
  27. alias ll='ls -lh'
  28. alias la='ls -lAh'
  29. alias sl=ls # often screw this up
  30. alias afind='ack-grep -il'