Skip to content

Instantly share code, notes, and snippets.

@markoa
Last active September 27, 2016 12:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markoa/1789937 to your computer and use it in GitHub Desktop.
Save markoa/1789937 to your computer and use it in GitHub Desktop.
Stuff I usually need in ~/.bash_profile
set -o vi
eval `ssh-agent`
ssh-add ~/.ssh/id_rsa
export PS1="\w ★ "
export LANGUAGE="en"
export LANG="C"
export LC_MESSAGES="C"
export LC_ALL="en_US.UTF-8"
function set_tab_title() {
echo -e "\033];$1\007"
}
alias gr="grep -rHns"
alias gitka="gitk --all"
alias gits="git status"
alias gitb="git branch"
alias gitl="git log --oneline --decorate"
alias c="clear"
alias be="bundle exec"
alias bers="be rake spec"
alias bec="bundle exec cucumber --format pretty"
alias becnew="bec --tags=@new"
alias mig="be rake db:migrate && be rake db:test:prepare"
alias reloadbash="source ~/.bash_profile"
alias tt="set_tab_title"
alias servefiles="python -m SimpleHTTPServer 4000 ."
alias vup="vagrant up"
alias vssh="vagrant ssh"
alias ack="ack-grep"
# Mac specific
# Quick way to rebuild the Launch Services database and get rid
# of duplicates in the Open With submenu.
# http://www.leancrew.com/all-this/2013/02/getting-rid-of-open-with-duplicates/
alias fixopenwith='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment