From: Colin Patrick Mccabe Date: Tue, 9 Aug 2016 23:47:24 +0000 (-0700) Subject: .bashrc: alias vim to vim -X and put cmccabe-bin before other PATH items X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ddc19be136f6870509f84efa8acc36da1506326;p=cmccabe-etc .bashrc: alias vim to vim -X and put cmccabe-bin before other PATH items 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. --- diff --git a/.bashrc b/.bashrc index cdfad13..915664e 100644 --- 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}" ;; *)