Skip to content

Instantly share code, notes, and snippets.

@GregLevenhagen
Last active August 29, 2015 13:56
Show Gist options
  • Save GregLevenhagen/8908700 to your computer and use it in GitHub Desktop.
Save GregLevenhagen/8908700 to your computer and use it in GitHub Desktop.
bashrc
# If not running interactively, don't do anything:
[ -z "$PS1" ] && return
export PATH=~/bin:$PATH
export HISTCONTROL=ignoreboth
export HISTSIZE=100000000000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsiz
# enable color support of ls
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color'
fi
alias ll='ls -al'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias more='less'
export PAGER=less
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
PROMPT="[\[\e[34m\]\u@\h\[\e[0m\]][\[\e[32m\]\w\[\e[0m\]]\n"
if [ $(id -u) -eq 0 ]; then
PS1="${PROMPT}# "
else
PS1="${PROMPT}$ "
fi
export EDITOR=vim
# mysql prompt setting
export MYSQL_PS1="\u@\h [\d]> "
export PAGER=less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment