commit 00f15129dac2c7fc8ad51e3e5e0386b3c490cd5f parent 5783e93dac7ebc499355230eae42273a6a09434e Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Fri, 23 Dec 2022 17:44:00 -0500 Default parameter in bashrc Diffstat:
| M | .bashrc | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.bashrc b/.bashrc @@ -10,8 +10,8 @@ if ! shopt -oq posix; then fi shopt -s histappend histreedit -mkdir -p "$XDG_STATE_HOME"/bash -HISTFILE="$XDG_STATE_HOME"/bash/history +mkdir -p "${XDG_STATE_HOME:-$HOME/.local/state}"/bash +HISTFILE="${XDG_STATE_HOME:-$HOME/.local/state}"/bash/history HISTCONTROL=ignoreboth HISTSIZE=100000 HISTFILESIZE=200000 @@ -29,7 +29,7 @@ LESS_TERMCAP_se=$'\E[0m' # reset reverse video LESS_TERMCAP_us=$'\E[1;32m' # begin underline LESS_TERMCAP_ue=$'\E[0m' # reset underline -source $XDG_CONFIG_HOME/shell/aliases.sh +source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliases.sh GPG_TTY=$(tty)