Last active
December 15, 2015 08:49
-
-
Save aninder/5234248 to your computer and use it in GitHub Desktop.
my .bash_profile
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
#enable globals terminal colors | |
export CLICOLOR=1 | |
export LSCOLORS=exfxcxdxbxegedabagacad | |
# terminal hist config | |
export HISTFILESIZE=100000 | |
export HISTCONTROL=ignoredups | |
export HISTSIZE=20000 | |
export HISTIGNORE="[ ]*:&:bg:fg:ls -l:ls -al:ls -la:ls1:lsa:lsr:gits:gits?" | |
#append new line after every command as there seems to bea bug for colored terminals where long commands get overwritten | |
#PS1='\n\d***\t\[\033[1;32m\]\w\[\033[0m \!\]\n\$ ' | |
PS1='\n\d\t[\033[1;32m\]\u@\h\[\033[0m\]:\[\033[1;34m\]\w\[\033[0m \!\]\n\$ ' | |
# in this manner, a nice command: h <searchterm> | |
alias h='history | grep $1' | |
##rvm environment setup | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# set by brew | |
PATH=$PATH:/usr/local/git/bin | |
##source difference completions | |
source `brew --prefix`/Library/Contributions/brew_bash_completion.sh | |
source `brew --prefix git`/etc/bash_completion.d/git-completion.bash | |
## aliases | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias cd..='cd ..' | |
alias grep="grep --color=auto" | |
##show the file in OSX Finder | |
alias reveal="open -R" | |
pman () { | |
man -t "${1}" | open -f -a /Applications/Preview.app | |
} | |
## git | |
#rbenv | |
#if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
##ruby version folder | |
#export RBENV_ROOT=/usr/local/var/rbenv | |
##PS1='\e[0;32m\u\e[m:\e[0;34m\w\e[m\$ ' #Prompt user host:path$ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment