Last active
May 3, 2019 07:33
-
-
Save oscarmorrison/4f0231646442f82ee389 to your computer and use it in GitHub Desktop.
Bash Profile Backup
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 PS1="\e[44mogem@local:\e[m \w \[$txtcyn\]\$git_branch\[$txtrst\] \n$ " | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
export PATH=$PATH:~/.scripts/ | |
export PATH=$PATH:/usr/local/bin | |
export PATH="$HOME/.node/bin:$PATH" | |
source $GITAWAREPROMPT/main.sh | |
alias gs='git status' | |
alias gd='git diff' | |
alias gc='git commit -am' | |
alias gch='git fetch && git checkout' | |
alias gp='git push' | |
alias gitstats='git shortlog -sn --no-merges' | |
alias dayno='date +%j' | |
alias of='open $(fzf)' | |
alias ..='cd ..' | |
alias ~='cd ~' | |
alias l='ls -oGa' | |
alias ls='ls -G' | |
alias bashp='sb ~/.bash_profile' | |
alias sbash='source ~/.bash_profile' | |
alias vimrc='vim ~/.vimrc' | |
alias quit="osascript -e 'tell application \"Terminal\" to quit'" | |
alias openSt='open . -a /Applications/SourceTree.app/' | |
alias dnsflush='sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;' | |
# mkdir, cd into it | |
mkcd () { | |
mkdir -p "$*" | |
cd "$*" | |
} | |
#grep | |
g(){ grep -rnIi "$1" . --color; } | |
#find | |
f(){ find . -iname "$1"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment