Skip to content

Instantly share code, notes, and snippets.

@yoshi-taka
Last active August 29, 2015 13:56
Show Gist options
  • Save yoshi-taka/9271282 to your computer and use it in GitHub Desktop.
Save yoshi-taka/9271282 to your computer and use it in GitHub Desktop.
PS1="\`s=\$?;if [[ \$s -ne 0 ]];then echo -n \[\e[31m\]\$s\[\e[0m\];fi;if [ \$UID -eq 0 ];then echo \[\e[33m\];else echo \[\e[37m\] ;fi \`[\u@\h:\w]\$ \[\e[00m\]"
function source_if_exists(){
test -f "$1" && source "$1"
}
case $( uname -s ) in
AIX )
source_if_exists $HOME/.bash_aix ;;
Darwin )
alias ls="ls -G"
export PATH=$HOME/.rbenv/bin:~/.rbenv/shims:$PATH
;;
esac
LANG=en_US.UTF-8
HISTSIZE=50000
HISTFILESIZE=50000
HISTCONTROL=ignoreboth
HISTTIMEFORMAT='%Y%m%d %T'
alias rm='rm -i'
set -o noclobber
shopt -u sourcepath
shopt -s cdspell
shopt -s checkhash
shopt -s checkwinsize
shopt -s cmdhist
shopt -s histappend
shopt -s histverify
shopt -s no_empty_cmd_completion
IGNOREEOF=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment