Last active
September 27, 2016 12:58
-
-
Save markoa/1789937 to your computer and use it in GitHub Desktop.
Stuff I usually need in ~/.bash_profile
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
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