Skip to content

Instantly share code, notes, and snippets.

@enagorny
Created November 1, 2013 11:03
Show Gist options
  • Save enagorny/7263923 to your computer and use it in GitHub Desktop.
Save enagorny/7263923 to your computer and use it in GitHub Desktop.
vagrant .bash_profile
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;31'
export HISTCONTROL=erasedups # Ignore duplicate entries in history
export HISTSIZE=100000 # Increases size of history
export HISTIGNORE="&:ls:ll:la:l.:pwd:exit:clear:clr:[bf]g"
shopt -s histappend # Append history instead of overwriting
shopt -s cdspell # Correct minor spelling errors in cd command
shopt -s dotglob # includes dotfiles in pathname expansion
shopt -s checkwinsize # If window size changes, redraw contents
shopt -s cmdhist # Multiline commands are a single command in history.
shopt -s extglob # Allows basic regexps in bash.
export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w\$\[\033[00m\] $(__git_ps1)" # beatify prompt
export CLICOLOR=1
export LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:"
alias ..='cd ..' # Go up one directory
alias ...='cd ../..' # Go up two directories
alias l='ls -lah' # Long view, show hidden
alias la='ls -AF' # Compact view, show hidden
alias ll='ls -lFh' # Long view, no hidden
alias ls="ls -F --color" # Good colors for linux ls
export PROMPT_COMMAND='echo -ne "\033]0;`basename ${PWD}`\007"' # to make terminal tab titles look better
cd /vagrant/ # go to work folder after login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment