summaryrefslogtreecommitdiffstats
path: root/profile
diff options
context:
space:
mode:
Diffstat (limited to 'profile')
-rw-r--r--profile8
1 files changed, 6 insertions, 2 deletions
diff --git a/profile b/profile
index 639c91b..2515059 100644
--- a/profile
+++ b/profile
@@ -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