X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fdebian-org%2Ffiles%2Froot-dotfiles%2Fbashrc;h=048d94436c1f5dfb9f04ded474e7fe74b2efdbc5;hb=4326b0a78553bfe9696c10f1a69e1316acd23802;hp=ab93fcbafc0a0cb2461cae064f9d3f25c85bfad3;hpb=3a8ea253416bbc3db8f4e9b8194dd2e888880745;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/files/root-dotfiles/bashrc b/modules/debian-org/files/root-dotfiles/bashrc index ab93fcbaf..048d94436 100644 --- a/modules/debian-org/files/root-dotfiles/bashrc +++ b/modules/debian-org/files/root-dotfiles/bashrc @@ -3,10 +3,21 @@ ## 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 + typeset HISTSIZE=50000 + + 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 [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + fi + + PATH="$PATH:/usr/lib/nagios/plugins" +fi # vim: set ft=sh ts=2 sw=2 et ai si: