.profile: sort HISTFILE
parent
5ad2cc8743
commit
09c737daf7
5
.profile
5
.profile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue