Guest User

Untitled

a guest
Feb 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1.  
  2. export PATH=/usr/local/bin:/usr/local/mysql/bin/:/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:/usr/local/apache2/bin:${HOME}/bin:$PATH
  3. export PS1='\W \$ '
  4. export EDITOR='vim -w'
  5. export SVN_EDITOR='vim -wd'
  6. export CDPATH=.:~:~/dev
  7.  
  8. # ALIASES
  9. alias myip='ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2'
  10.  
  11. # BASH
  12. alias c='clear'
  13. alias l='ls -lha'
  14. alias hosts='$EDITOR /etc/hosts'
  15. alias profile='$EDITOR ~/.bash_profile'
  16. alias test='rake test'
  17.  
  18. # Not sure what this is about, but I think it has to be at the bottom
  19. test -r /sw/bin/init.sh && . /sw/bin/init.sh
  20.  
  21. # auto complete in cheat
  22. sheets=`cheat sheets | grep '^ '`
  23. function complete_cheat {
  24. COMPREPLY=()
  25. if [ $COMP_CWORD = 1 ]; then
  26. COMPREPLY=(`compgen -W "$sheets" -- $2`)
  27. fi
  28. }
  29. complete -F complete_cheat cheat
  30.  
  31. complete -C ~/.bash/tab_completions/rake.rb -o default rake
  32.  
  33. source ~/.bash_vcs
Add Comment
Please, Sign In to add comment