Guest User

Untitled

a guest
Oct 23rd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. # CCH - Bash Profile Settings #
  2.  
  3. # user@hostname:where<ex.~>$
  4. export PS1="\e[1;33m\u@\h:\e[1;36m\w\e[0m\$ "
  5.  
  6. # colors
  7. export CLICOLOR=1
  8. export LSCOLORS=GxFxCxDxBxegedabagaced
  9.  
  10. alias c='clear'
  11. alias f='open -a Finder ./'
  12. alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10'
  13.  
  14. ## network ##
  15. # external ip [not currently working]
  16. alias myip='curl ip.appspot.com'
  17. # list open ports
  18. alias ports='sudo lsof -i | grep LISTEN'
  19.  
  20. # root profile
  21. # TODO: sudo doesnt know cmd 'source' from ./.gosu
  22. # alias su_='sudo ./.gosu'
  23.  
  24. alias mtr='/usr/local/sbin/mtr'
  25.  
  26. alias sbash='source ~/.bash_profile'
  27. getchmod() {
  28. stat -f "%OLp" $1
  29. }
  30.  
  31. sha256sum() {
  32. shasum -a 256 $1
  33. }
  34.  
  35. alias tlist='tmux list-sessions'
  36.  
  37. export PATH="/usr/bin:$PATH"
  38.  
  39. # Show and verify code signatures of files
  40. checksig() {
  41. codesign -dv --verbose=4 $1
  42. }
  43.  
  44. alias sbpro='source ~/.bash_profile'
Add Comment
Please, Sign In to add comment