aliases.zsh 616 B

1234567891011121314151617181920212223242526272829303132333435
  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 afind='ack-grep -il'