Created
December 3, 2015 21:21
-
-
Save auremoser/299c5044e75ecb20e5d5 to your computer and use it in GitHub Desktop.
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
#Added by Anaconda 1.8.0 installer | |
export PATH="//anaconda/bin:$PATH" | |
#Export bin paths | |
export PATH=/bin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:$PATH | |
# Make sublime text default editor | |
export EDITOR='subl -w' | |
export PATH=/Users/aurelia/.rbenv/shims/compass:$PATH | |
#Show message on new window | |
fortune | cowthink -f stegosaurus | |
#Ruby rbev add | |
export RBENV_ROOT="$HOME/.rbenv" | |
if [ -d $RBENV_ROOT ]; then | |
export PATH="$RBENV_ROOT/bin:$PATH" | |
eval "$(rbenv init -)" | |
fi | |
echo bundler >> ~/.rbenv/default-gems | |
echo rubygems-bundler >> ~/.rbenv/default-gems | |
#Setup aliases in Terminal (lh=human length of bytes) | |
alias ll='ls -lh' | |
#Setup autocomplete with tab to be case-insensitive | |
bind "set completion-ignore-case on" | |
bind "set show-all-if-ambiguous on" | |
#Gives you git branch in square brackets | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
} | |
export PS1='\[\033[0;32m\]\h \[\033[0;36m\]\w\[\033[00m\]\[\033[00m\] $(parse_git_branch): ' | |
#export PS1="\[\033[00m\]\u@\h\[\033[0;32m\] \w \[\033[0;36m\]\$(parse_git_branch) \[\033[00m\]$\[\033[00m\] ' | |
#Ignore duplicated in Terminal history | |
export HISTCONTROL=ignoreboth | |
# Virtualenvwrapper | |
source /usr/local/bin/virtualenvwrapper.sh | |
# Load RVM into a shell session *as a function* | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
# rvm tell me to do it | |
source ~/.profile | |
#increase file descriptors | |
ulimit -n 65536 unlimited | |
# search google from the command line | |
function g() { | |
open https://www.google.com/search?q="${1}" | |
} | |
# g "my search query" | |
# auto correct typos when changing directories: | |
shopt -s cdspell | |
# fast nav in terminal | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias ~="cd ~" | |
alias gs=“git-stats —no-ansi” | |
alias dl="cd ~/Downloads; ll" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment