From 6ddc19be136f6870509f84efa8acc36da1506326 Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Tue, 9 Aug 2016 16:47:24 -0700 Subject: [PATCH] .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. --- .bashrc | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) 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}" ;; *) -- 1.6.6.rc1.39.g9a42