1
0

aliases.sh 877 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. # ls
  3. alias l='ls -lFh' # size,show type,human readable
  4. alias la='ls -lAFh' # long list,show almost all,show type,human readable
  5. alias lr='ls -tRFh' # sorted by date,recursive,show type,human readable
  6. alias lt='ls -ltFh' # long list,sorted by date,show type,human readable
  7. alias ll='ls -l' # long list
  8. # export local .env file
  9. alias export-env="export \$(grep -v '^#' .env | xargs -0)"
  10. # http
  11. alias http-server='python -m SimpleHTTPServer'
  12. # osx-only aliases
  13. if [[ "$(uname -s)" = 'Darwin' ]]; then
  14. alias get-buffer="$HOME/dotfiles/bin/get-iterm2-buffer"
  15. alias chrome-tabs="$HOME/dotfiles/bin/chrome-tabs"
  16. fi
  17. # other bin
  18. alias awsp="$HOME/dotfiles/bin/aws-profile"
  19. # display docker statuses
  20. alias dockerps="docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'"
  21. # set terminal title
  22. function title {
  23. echo -ne "\033]0;"$*"\007"
  24. }