-
-
Save rc1/ccef1d2e3611509a38bb to your computer and use it in GitHub Desktop.
Prompt config for iTerm
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
alias show_files='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' | |
alias hide_files='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app' | |
alias cls='clear' | |
alias tracert='traceroute' | |
alias lsusb='system_profiler SPUSBDataType' | |
alias server_here='sudo python -m SimpleHTTPServer 80' | |
alias git_orphan='git checkout --orphan' | |
alias ssh-nocheck='ssh -o UserKnownHostsFile=/dev/null' | |
alias subl='open -a /Applications/Sublime\ Text.app/' | |
alias subl.='open -a /Applications/Sublime\ Text.app/ .' | |
alias ross='say "whata man, whata man, whata might good man"' | |
# thanks to @nickludlam | |
alias top='top -F -R -u' | |
alias fuck='sudo $(history -p \!\!)' | |
alias reload_profile='. ~/.bash_profile' | |
alias edit_profile='nano ~/.bash_profile' | |
alias edit_tricks='nano ~/.bash_tricks' | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\[\033[33m\]\u\[\033[00m\]@\[\033[33m\]\h \[\033[00m\]\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] ➤\n" | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment