Created
November 15, 2008 16:01
-
-
Save croaky/25264 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| export PS1='\W \$ ' | |
| export EDITOR='vim -w' | |
| export SVN_EDITOR='vim -wd' | |
| export CDPATH=.:~:~/dev | |
| # ALIASES | |
| alias myip='ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2' | |
| # BASH | |
| alias c='clear' | |
| alias l='ls -lha' | |
| alias hosts='$EDITOR /etc/hosts' | |
| alias profile='$EDITOR ~/.bash_profile' | |
| alias test='rake test' | |
| # Not sure what this is about, but I think it has to be at the bottom | |
| test -r /sw/bin/init.sh && . /sw/bin/init.sh | |
| # auto complete in cheat | |
| sheets=`cheat sheets | grep '^ '` | |
| function complete_cheat { | |
| COMPREPLY=() | |
| if [ $COMP_CWORD = 1 ]; then | |
| COMPREPLY=(`compgen -W "$sheets" -- $2`) | |
| fi | |
| } | |
| complete -F complete_cheat cheat | |
| complete -C ~/.bash/tab_completions/rake.rb -o default rake | |
| source ~/.bash_vcs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment