Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1.  
  2. # Easier navigation: .., ..., ~ and -
  3. alias ..="cd .."
  4. alias cd..="cd .."
  5. alias ...="cd ../.."
  6. alias ....="cd ../../.."
  7. alias .....="cd ../../../.."
  8.  
  9.  
  10. # Handy things
  11. # alias spotify="osascript ~/code/SpotifyControl/SpotifyControl.scpt"
  12.  
  13.  
  14. # List all files colorized in long format
  15. alias l="ls -l ${colorflag}"
  16.  
  17. # List all files colorized in long format, including dot files
  18. alias la="ls -la ${colorflag}"
  19.  
  20. # List only directories
  21. alias lsd='ls -l | grep "^d"'
  22.  
  23. # `cat` with beautiful colors. requires Pygments installed.
  24. alias c='pygmentize -O style=monokai -f console256 -g'
  25.  
  26. # IP addresses
  27. alias localip="ipconfig getifaddr en1"
  28.  
  29. # Recursively delete `.DS_Store` files
  30. alias cleanup="find . -name '*.DS_Store' -type f -ls -delete"
  31.  
  32. # Shortcuts
  33. alias g="git"
  34. alias v="vim"
  35. alias gs="git status"
  36. alias gss="git status -s"
  37. alias gb="git branch"
  38. alias gba="git branch -a"
  39. alias gl="git log --pretty=oneline -n 20 --graph --abbrev-commit"
  40. alias s="spotify toggle"
  41. alias sp="spotify prev"
  42. alias sn="spotify next"
  43. alias s+="spotify vol up"
  44. alias s-="spotify vol down"
  45. alias spot="spotify"
  46. alias ss="spotify status"
  47.  
  48.  
  49. alias tom="/Users/hanstra/apps/tomcat/tomcat/bin/startup.sh"
  50. alias tomstop="/Users/hanstra/apps/tomcat/tomcat/bin/shutdown.sh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement