X-Git-Url: http://gitweb.michael.orlitzky.com/?p=bash.d.git;a=blobdiff_plain;f=aliases.sh;h=76962bd5ea6ebb90d61bbbeb20cb55f28ecad502;hp=577a25d0aabce1312bb90625acf3c2067ec39e57;hb=HEAD;hpb=3fc60cd6081646b25f699f153a4df47b9c1853ed diff --git a/aliases.sh b/aliases.sh index 577a25d..76962bd 100644 --- a/aliases.sh +++ b/aliases.sh @@ -3,6 +3,17 @@ # alias df='df --human-readable' 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'