aliases.zsh 722 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. # Prevent headaches
  8. alias cp='cp -v'
  9. alias rm='rm -v'
  10. alias mv='mv -v'
  11. # Super user
  12. alias _='sudo'
  13. alias please='sudo'
  14. #alias g='grep -in'
  15. # Show history
  16. if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
  17. then
  18. alias history='fc -fl 1'
  19. elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
  20. then
  21. alias history='fc -El 1'
  22. elif [ "$HIST_STAMPS" = "yyyy-mm-dd" ]
  23. then
  24. alias history='fc -il 1'
  25. else
  26. alias history='fc -l 1'
  27. fi
  28. # List direcory contents
  29. alias lsa='ls -lah'
  30. alias l='ls -lah'
  31. alias ll='ls -lh'
  32. alias la='ls -lAh'
  33. alias sl=ls # often screw this up
  34. alias afind='ack-grep -il'