1
0
Fork 0

.profile: sort HISTFILE

main
urosm 2024-09-13 20:23:18 +02:00
parent 5ad2cc8743
commit 09c737daf7
1 changed files with 2 additions and 3 deletions

View File

@ -28,9 +28,8 @@ export XDG_CONFIG_DIRS=/etc/xdg
# .bash_history
export HISTFILE="$XDG_STATE_HOME"/bash/history
if [ ! -d "$(dirname "${HISTFILE}")" ]; then
mkdir -p "$(dirname "${HISTFILE}")"
fi
[ ! -d "$(dirname "${HISTFILE}")" ] && mkdir -p "$(dirname "${HISTFILE}")"
[ -f "$HISTFILE" ] && sort -uo $HISTFILE $HISTFILE
# .inputrc
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc