.bashrc: alias vim to vim -X and put cmccabe-bin before other PATH items
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Tue, 9 Aug 2016 23:47:24 +0000 (16:47 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Tue, 9 Aug 2016 23:47:24 +0000 (16:47 -0700)
Without vim -X, vim appears to spend up to a second trying to connect to
X11.  Without putting cmccabe-bin before other PATH entries, I sometimes
don't get the command that I want.

.bashrc

diff --git a/.bashrc b/.bashrc
index cdfad13..915664e 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -28,14 +28,15 @@ case $- in
        # interactive shell
         ls --color /tmp &>/dev/null && alias ls='ls --color=auto'
        alias mv='mv -i'
-       alias vi='vim'
+       alias vim='vim -X'
+       alias vi='vim -X'
        alias wget='wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"'
        alias grep='grep --color=tty -d skip'
         alias bterm='xterm -fn "-adobe-courier-bold-r-normal--34-240-100-100-m-200-iso8859-1" -geometry 60x30-50-50'
         alias mplayer="mplayer -fs -ac a52,"
-       export PATH="${PATH}:${HOME}/cmccabe-bin"
+       export PATH="${HOME}/cmccabe-bin:${PATH}"
     [ -d "${HOME}/cmccabe-hbin" ] && export PATH="${PATH}:${HOME}/cmccabe-hbin"
-       export EDITOR="/usr/bin/vim"
+       export EDITOR="/usr/bin/vim -X"
        export CSCOPE_EDITOR="${EDITOR}"
        ;;
 *)