29 lines
808 B
Bash
29 lines
808 B
Bash
# shellcheck shell=bash
|
|
|
|
# Shared colors used by later Bash modules.
|
|
_WHITE='\033[1;37m'
|
|
_NC='\033[0m'
|
|
_RED='\033[0;31m'
|
|
_YELLOW='\033[0;33m'
|
|
_BLUE='\033[1;34m'
|
|
_BRIGHT_GREEN='\033[1;32m'
|
|
_BRIGHT_RED='\033[1;31m'
|
|
_BRIGHT_WHITE='\033[1;37m'
|
|
_DIM_RED='\033[91m'
|
|
|
|
export SHELL_CONFIG="${SHELL_CONFIG:+${SHELL_CONFIG}:}.bashrc"
|
|
|
|
export HISTCONTROL=ignoreboth:erasedups
|
|
export HISTFILE="$HOME/.histfile"
|
|
export HISTSIZE=10000
|
|
export HISTFILESIZE=10000
|
|
shopt -s histappend checkwinsize
|
|
|
|
# Disable terminal flow-control keys only when stdin is a terminal.
|
|
[[ -t 0 ]] && stty -ixon
|
|
|
|
# If there are multiple completion matches, cycle through them while still
|
|
# displaying the shared prefix and full candidate list.
|
|
bind TAB:menu-complete
|
|
bind "set show-all-if-ambiguous on"
|
|
bind "set menu-complete-display-prefix on"
|