# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return # Bash config #export EDITOR=nvim #HISTCONTROL=ignoreboth #shopt -s histappend #HISTSIZE=1000 #HISTFILESIZE=2000 #shopt -s checkwinsize # Alias definitions. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi # Disable CTRL+S and CTRL+Q keybindings # (used to pause and resume output to terminal) # See: https://unix.stackexchange.com/a/137846/347754 # https://unix.stackexchange.com/a/73499/347754 stty -ixon # Prompt # - user@host pwd (git prompt) # Ref.: https://stackoverflow.com/a/15398153/7498073 source ~/.git-prompt.sh #PS1='[\u@\h \W]\$ ' PS1='\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ ' # less LESS="-i" # ignore case LESS+=" -S" # don't chop long lines LESS+=" -j5" # Add 5 context lines LESS+=" --RAW-CONTROL-CHARS" export LESS # better `ls` (and other programs like `tree`) colors #eval "$(dircolors)"