bash.d/30-shell-options

21 lines
469 B
Text
Raw Permalink Normal View History

# shellcheck shell=bash
# Shell options: history, window size, and color support
# History
HISTCONTROL=ignoredups
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
# Update LINES and COLUMNS after each command
shopt -s checkwinsize
# Enable color support for ls
if command -v dircolors &>/dev/null; then
if [[ -r ~/.dircolors ]]; then
eval "$(dircolors -b ~/.dircolors)"
else
eval "$(dircolors -b)"
fi
alias ls='ls --color=auto'
fi