aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-05-14 13:42:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-05-14 13:42:44 +0300
commit48833c8c1c868826a83d43500025956fd570c111 (patch)
tree81c8ae6dec30e0d476cb634daea4c25f298bc330 /%HOME%
parent.gitconfig: move alias.fixup to a separate script (diff)
downloadlinux-home-48833c8c1c868826a83d43500025956fd570c111.tar.gz
linux-home-48833c8c1c868826a83d43500025956fd570c111.zip
.bashrc: add a comment to the sudo alias
Diffstat (limited to '')
-rw-r--r--%HOME%/.bashrc7
1 files 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'