Skip to content

Commit eb54103

Browse files
authored
✨ add HISTCONTROL to only save the same command once in the history (#130)
1 parent c1ffea8 commit eb54103

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.additional_bashrc.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if sudo docker ps -q &>/dev/null; then
1212
export HOST_DISPLAY_NAME=${HOST_DISPLAY_NAME:1}
1313
fi;
1414

15+
export HISTCONTROL=ignoreboth:erasedups
16+
1517
if [[ $CONTAINER_ID != ${HOSTNAME}* ]] ; then
1618
export HOST_DISPLAY_NAME=$HOSTNAME
1719
fi

0 commit comments

Comments
 (0)