Skip to content

Instantly share code, notes, and snippets.

@acouch
Last active April 23, 2020 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acouch/b8c7190841b29cd39ae01073c082e390 to your computer and use it in GitHub Desktop.
Save acouch/b8c7190841b29cd39ae01073c082e390 to your computer and use it in GitHub Desktop.
# Shared and expanded history.
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=100000
HISTFILESIZE=100000
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
#{{{1 Bash Colors and Prompt
LS_COLORS=$LS_COLORS:'di=00;33:ln=00;31:fi=00;32'
export LS_COLORS
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;36m\]"
WHITE="\[\033[0;37m\]"
# Makes prompt wrap to next line.
COLUMNS=250
PS1="$GREEN\u$YELLOW\[\w]\n($BLUE\W$YELLOW)$GREEN\$(__git_ps1 '(%s)')$RED\$$WHITE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment