.profile: sort HISTFILE
parent
5ad2cc8743
commit
09c737daf7
5
.profile
5
.profile
|
@ -28,9 +28,8 @@ export XDG_CONFIG_DIRS=/etc/xdg
|
||||||
|
|
||||||
# .bash_history
|
# .bash_history
|
||||||
export HISTFILE="$XDG_STATE_HOME"/bash/history
|
export HISTFILE="$XDG_STATE_HOME"/bash/history
|
||||||
if [ ! -d "$(dirname "${HISTFILE}")" ]; then
|
[ ! -d "$(dirname "${HISTFILE}")" ] && mkdir -p "$(dirname "${HISTFILE}")"
|
||||||
mkdir -p "$(dirname "${HISTFILE}")"
|
[ -f "$HISTFILE" ] && sort -uo $HISTFILE $HISTFILE
|
||||||
fi
|
|
||||||
|
|
||||||
# .inputrc
|
# .inputrc
|
||||||
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
|
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
|
||||||
|
|
Loading…
Reference in New Issue