diff options
Diffstat (limited to 'profile')
-rw-r--r-- | profile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -53,11 +53,15 @@ umask 022 USER=`id -un` LOGNAME=$USER MAIL="/var/spool/mail/$USER" -HISTCONTROL=ignoredups HOSTNAME=`/usr/bin/hostnamectl --transient 2>/dev/null` HISTSIZE=1000 +if [ "$HISTCONTROL" = "ignorespace" ] ; then + export HISTCONTROL=ignoreboth +else + export HISTCONTROL=ignoredups +fi -if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then +if [ -z "$INPUTRC" ] && [ ! -f "$HOME/.inputrc" ]; then INPUTRC=/etc/inputrc fi |