]> gitweb.michael.orlitzky.com - bash.d.git/blobdiff - aliases.sh
COPYING,LICENSE: add them (AGPL-3.0+)
[bash.d.git] / aliases.sh
index 084b2f229855067133e3af8441d827fe172f7171..76962bd5ea6ebb90d61bbbeb20cb55f28ecad502 100644 (file)
@@ -2,7 +2,18 @@
 # aliases
 #
 alias df='df --human-readable'
-alias du='du --human-readable --summarize *'
+alias du='du --human-readable --summarize --total *'
+
+if [ "${TERM#eterm}" = "${TERM}" ]; then
+    # We set EDITOR, VISUAL, and the "emacs" alias to the no-window
+    # version because it's so much faster than gtk emacs. (Note: the
+    # environment variables are currently set using "eselect" in
+    # Gentoo.) The exception for "eterm" that we've made here is to
+    # avoid launching emacs-nw within emacs-nw itself; in multi-term,
+    # for example, where $TERM is "eterm-color".
+    alias emacs='emacs --no-window-system'
+fi
+
 alias ls='ls -l --color=auto --human-readable --time-style=long-iso'
 alias youtube-dl-mp3='youtube-dl --extract-audio --audio-format=mp3'