Browse Source

Merge branch 'master' of https://josh1147582.jumpingcrab.com:3000/jhb2345/dotfiles

Josh Bicking 8 years ago
parent
commit
f43f8a4306
3 changed files with 8 additions and 2 deletions
  1. 4 0
      bashrc
  2. 2 2
      vimrc
  3. 2 0
      zshrc

+ 4 - 0
bashrc

@@ -1,3 +1,7 @@
+if [ -f "/usr/local/dcs/lib/config/Bash_Profile" ]; then
+    source /usr/local/dcs/lib/config/Bash_Profile
+fi
+
 PS1='\[\e[1;32m\]\u@\h \W\$ \[\e[0m\]'
 
 # ls pleasantness

+ 2 - 2
vimrc

@@ -56,7 +56,7 @@ set foldmethod=indent
 
 " set shell to zsh (if it exists)
 if !(has("win32") || has("win16") || has("win32unix"))
-    if filereadable("/bin/zsh")
+    if filereadable("/bin/zsh") && $SHELL=="/bin/zsh"
         silent! set shell=/bin/zsh  
     endif
 endif
@@ -70,7 +70,7 @@ function! UnixCapsControl()
 endfunction
 
 " map caps lock to escape under Linux
-if !(has("win32") || has("win16") || has("win32unix"))
+if !(has("win32") || has("win16") || has("win32unix")) && (!$SSH_CLIENT && !$SSH_TTY)
     au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
     au VimLeave * :call UnixCapsControl() 
 endif

+ 2 - 0
zshrc

@@ -47,7 +47,9 @@ bindkey "^[OF" end-of-line
 
 # Ctrl-Left and Ctrl-Right keys move between words
 bindkey ";5C" forward-word
+bindkey "^[[C" forward-word
 bindkey ";5D" backward-word
+bindkey "^[[D" backward-word
 
 # bind UP and DOWN arrow keys
 bindkey '^[[A' history-substring-search-up