Created
December 3, 2018 14:45
-
-
Save northofnormal/720e89e74712de4f27184305a9ad3c41 to your computer and use it in GitHub Desktop.
my bash profile
This file contains 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 GOPATH="$HOME/Development/platform-tools/bin:" | |
export PATH="$HOME/.node/bin:$GOPATH/bin:$PATH" | |
function gotime { | |
echo -e "\033[0;36mGet to work!\033[m" | |
ox | |
} | |
function out { | |
echo -e "\033[0;36mChecking Out\033[m" | |
osascript -e 'tell application "Xcode" to quit' | |
} | |
function burnitdown { | |
out | |
echo -e '\033[0;36mCleaning Targets\033[m' | |
xcodebuild -alltargets clean | |
echo -e '\033[0;36mDeleting Derived Data\033[m' | |
rm -rf ${HOME}/Library/Developer/Xcode/DerivedData | |
gotime | |
} | |
function ox { | |
open -a Xcode *.xcworkspace || open -a Xcode *.xcodeproj | |
} | |
# git tab completion | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
# Add git completion to aliases | |
__git_complete d _git_branch_-D | |
__git_complete gb _git_branch | |
__git_complete gco _git_checkout | |
__git_complete gm __git_merge | |
__git_complete gp _git_pull | |
__git_complete gpup __git_push_upstream | |
fi | |
## Git Aliases | |
alias branch="git checkout -b" | |
alias D="git branch -D" | |
alias ga="git add -A" | |
alias gb="git branch" | |
alias gco="git checkout" | |
alias gcm="git checkout master" | |
alias gm="git commit -m" | |
alias gp="git pull" | |
alias gpo="git push origin" | |
alias gpup="git push upstream" | |
alias gs="git status -uno" | |
alias update="git pull upstream master" | |
alias fetch="git fetch --all" | |
alias nope="git reset --hard" | |
alias patch="git add -p" | |
## Shortcut Aliases | |
alias atom="open -a atom" | |
alias bashit="vim ~/.bash_profile" | |
alias dte="cd ~/Development/DTE/dte-energy-ios" | |
alias jj="cd ~/Development/JJ/jimmy-johns-ios" | |
alias rn="cd ~/Development/LearningStuff/React/Udemy/reactNativeAndRedux" | |
alias car="cd ~/Development/Carstin/carstin" | |
alias reload=". ~/.bash_profile" | |
alias vw="cd ~/Development/Herbie/herbie-ios" | |
alias bi="bundle install" | |
alias pi="bundle exec pod install" | |
## Other Aliases | |
alias c="clear" | |
alias fuxcode="rm -rf ${HOME}/Library/Developer/Xcode/DerivedData" | |
alias la="ls -a" | |
alias aye="/Users/Anne/Development/SpaceCommander/dte-ios-spacecommander/format-objc-files.sh" | |
alias lint="sh lint.sh" | |
alias reset="sh ~/Development/resetSimulators.sh" | |
alias glw="./gradlew clean assembleDebug gnagCheck" | |
alias rni="react-native run-ios" | |
alias tardis="cd ~/Development/tardis" | |
alias redcar="redis-server /usr/local/etc/redis.conf" | |
## Load in the git branch prompt script. | |
source ~/git-prompt.sh | |
## Crashlytics credentials | |
export CRASHLYTICS_API_TOKEN="2abbd3768efce5a40e96de83cb479fe0360ba2de" | |
export CRASHLYTICS_BUILD_SECRET="75baed502be3fd561ae3852452c2d583ae3ebb54c60dca92c35c9fcf8271880a" | |
## variables for weather emoji thing | |
export localState= | |
export localCity= | |
#PS1="🥞 \[\033[1;34m\]\u \[\033[1;35m\]\W\[\033[1;37m\] $ " | |
PS1="\[`/users/Anne/Development/weather.rb $localState $localCity`\]\\[\033[1;34m\]\u \[\033[1;33m\]\W\[\033[1;32m\]\$(__git_ps1)\[\033[1;37m\] \$ " | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment