From 4af3700cae6d66e2cc5135b9910bdc8c0411d75d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 12 Jul 2014 13:03:18 +0200 Subject: [PATCH] set HISTCONTROL in root's bashrc. Only set stuff when running interactively --- modules/debian-org/files/root-dotfiles/bashrc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/debian-org/files/root-dotfiles/bashrc b/modules/debian-org/files/root-dotfiles/bashrc index ab93fcbaf..74bf5a309 100644 --- a/modules/debian-org/files/root-dotfiles/bashrc +++ b/modules/debian-org/files/root-dotfiles/bashrc @@ -3,10 +3,14 @@ ## THIS FILE IS UNDER PUPPET CONTROL. ## LOCAL CHANGES WILL BE OVERWRITTEN. -export LS_OPTIONS='--color=auto' -eval "`dircolors`" -alias ls='ls $LS_OPTIONS' -alias ll='ls $LS_OPTIONS -l' -alias l='ls $LS_OPTIONS -lA' +if [ "$PS1" ]; then + typeset HISTCONTROL=ignoreboth + + export LS_OPTIONS='--color=auto' + eval "`dircolors`" + alias ls='ls $LS_OPTIONS' + alias ll='ls $LS_OPTIONS -l' + alias l='ls $LS_OPTIONS -lA' +fi # vim: set ft=sh ts=2 sw=2 et ai si: -- 2.20.1