Last active
February 28, 2020 14:44
-
-
Save stefandz/b6fc481ea6dc3911fefe 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 hide_shadows='defaults write com.apple.screencapture disable-shadow -bool TRUE; killall SystemUIServer' | |
alias show_shadows='defaults write com.apple.screencapture disable-shadow -bool FALSE; killall SystemUIServer' | |
alias cls='clear' | |
alias tracert='traceroute' | |
alias lsusb='system_profiler SPUSBDataType' | |
alias √='echo $?' | |
alias server_here='sudo python -m SimpleHTTPServer 80' | |
alias ssh-nocheck='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' | |
alias scp-nocheck='scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' | |
alias subl='open -a /Applications/Sublime\ Text.app/' | |
alias subl.='open -a /Applications/Sublime\ Text.app/ .' | |
# thanks to @nickludlam | |
alias top='top -F -R -u' | |
alias oops='sudo $(history -p \!\!)' | |
alias reload_profile='. ~/.bash_profile' | |
alias edit_profile='nano ~/.bash_profile' | |
alias edit_tricks='nano ~/.bash_tricks' | |
alias edit_known_hosts='nano ~/.ssh/known_hosts' | |
remove_pi_hosts() { | |
sed -i '' '/raspberrypi.local/d' ~/.ssh/known_hosts | |
} | |
alias gpom='git push origin master' | |
alias glom='git pull origin master' | |
alias git_orphan='git checkout --orphan' | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
alias gitinspector='python ~/Utilities/gitinspector/gitinspector.py -f** -Fhtml' | |
alias how-many-lines="find . -name '.git*' -prune -o -name '*' -print | xargs wc -l 2>/dev/null | tail -n1" | |
mkcdir () | |
{ | |
mkdir -p -- "$1" && | |
cd -P -- "$1" | |
} | |
alias weather='curl -4 http://wttr.in/Tolworth' | |
alias moon='curl -4 http://wttr.in/Moon' | |
export PS1="\t ➤ \[\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 | |
alias pip2.7='/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pip' | |
alias spip2.7='/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pip' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment