From 48833c8c1c868826a83d43500025956fd570c111 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 14 May 2018 13:42:44 +0300 Subject: .bashrc: add a comment to the sudo alias --- %HOME%/.bashrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index 93dc3e2..9807e6d 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -5,10 +5,12 @@ esac export PS1="\[\e[1;32m\]\h\[\e[m\] \[\e[1;34m\]\W\[\e[m\] # \[$(tput sgr0)\]" +# `echo "!)"` doesn't work otherwise (namely, in third-party scripts): set +o histexpand -# `echo "!)"` doesn't work otherwise (namely, in third-party scripts). -#set -o nounset + # Too many third-party scripts stop working w/ nounset enabled :-( +#set -o nounset + set -o pipefail shopt -s checkwinsize @@ -17,6 +19,7 @@ shopt -s histappend shopt -s nullglob shopt -s nocaseglob +# Make aliases work with sudo: alias sudo='sudo ' alias df='df --human-readable' -- cgit v1.2.3