Skip to content

Instantly share code, notes, and snippets.

@oscarmorrison
Last active May 3, 2019 07:33
Show Gist options
  • Save oscarmorrison/4f0231646442f82ee389 to your computer and use it in GitHub Desktop.
Save oscarmorrison/4f0231646442f82ee389 to your computer and use it in GitHub Desktop.
Bash Profile Backup
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