Last active
September 4, 2015 20:34
-
-
Save ma11hew28/380318 to your computer and use it in GitHub Desktop.
.bash_profile file
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
# Homebrew, Ruby, Bash Completion | |
# After upgrading Ruby, run: gem pristine --all --only-executables | |
export PATH="/usr/local/bin:/usr/local/opt/ruby/bin:$PATH" | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
# Directory Shortcuts | |
alias prj='cd "$HOME/Projects/"' | |
# Command Aliases | |
alias ebp='vim "$HOME/.bash_profile"' | |
alias sbp='. "$HOME/.bash_profile"' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
alias ln='ln -i' | |
alias ll='ls -Al' | |
alias flush='sudo dscacheutil -flushcache' | |
alias rmdsstores='find . -name .DS_Store -type f -delete' | |
alias json='pbpaste | python -mjson.tool' | |
# alias exget='rsync -rlptDvie ssh [email protected]:Projects/example.com/ "$HOME/Projects/example.com/" --delete --exclude ".git*" --exclude .DS_Store' | |
# alias exdep='rsync -rlptDvie ssh "$HOME/Projects/example.com/" [email protected]:Projects/example.com/ --delete-after --delay-updates --exclude ".git*" --exclude .DS_Store' | |
# alias expul='rsync -ptgoie ssh [email protected]:Projects/example.com/backup/database.sql ~/Projects/example.com/backup/' | |
# Current Directory: Show in title bar. Abbreviate in prompt with (git-branch). | |
PROMPT_COMMAND='CUR_DIR=`pwd|sed -e "s!$HOME!~!"|sed -E "s!([^/])[^/]+/!\1/!g"`' | |
PS1='\[\e]2;\w\a\e[32;1m\][$CUR_DIR$(__git_ps1)]\$\[\e[0m\] ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment