From 99cd32d0e9cfe351626e1197083afe2c84f89501 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Sat, 17 Nov 2012 20:53:06 -0800 Subject: [PATCH 1/2] misc fixes --- .gvimrc | 1 + .vimrc | 1 + .zprofile | 2 +- .zshenv | 15 +++++++++++++++ .zshrc | 20 +++++++++++++++++++- 5 files changed, 37 insertions(+), 2 deletions(-) diff --git a/.gvimrc b/.gvimrc index 8f3a975..97126d8 100644 --- a/.gvimrc +++ b/.gvimrc @@ -3,6 +3,7 @@ winsize 115 45 "set guifont=DejaVu\ Sans\ Mono:h15.00 set guifont=Inconsolata:h18.00 set guioptions-=L +set guioptions-=r if has("gui_macvim") set fuoptions=maxvert,maxhorz diff --git a/.vimrc b/.vimrc index 9d51b35..e01fdf2 100644 --- a/.vimrc +++ b/.vimrc @@ -310,6 +310,7 @@ endfunction command! -complete=shellcmd -nargs=+ Shell call s:ExecuteInShellOutput() command! -complete=shellcmd -nargs=+ Exec call s:ExecuteInShell() command! -nargs=* Make call s:ExecuteInShellOutput('make '.) +command! -nargs=* Git call s:ExecuteInShellOutput('git '.) command! -nargs=* PTW call s:ExecuteInShell('ptw post --client=vim "'..'"') " Highlight all instances of word under cursor, when idle. diff --git a/.zprofile b/.zprofile index fa3a5fb..59f3135 100644 --- a/.zprofile +++ b/.zprofile @@ -36,4 +36,4 @@ ENV=$HOME/.zshrc; export ENV #alias ls='ls -FG' #alias la='ls -FGal' -#source ~/.bashrc +#source ~/.zshrc diff --git a/.zshenv b/.zshenv index ca5cf08..28ef11e 100644 --- a/.zshenv +++ b/.zshenv @@ -9,3 +9,18 @@ bindkey '\e[3~' forward-delete-char # Delete key bindkey '\e[6~' end-of-history # Page down key bindkey '\e[2~' redisplay # Insert key bindkey '\e[5~' insert-last-word # Page up key + +# remove /usr/games and /usr/X11R6/bin if you want +PATH=$HOME/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/games:/usr/X11R6/bin:/$HOME/.gem/ruby/1.9/bin; export PATH +case `uname` in +SunOS) + UCB_PATH=/usr/sww/lang/acl:/usr/sww/lang/jdk-1.5.0/bin:/usr/openwin/bin:/usr/dt/bin:/usr/sww/opt/java/bin:/usr/sww/bin:/share/b/grading/bin:/share/b/grading/sbin:/share/b/runas/sun4u:/share/b/bin:/home/aa/projects/scheme/bin:/usr/ucb:/usr/ccs/bin:/usr/sfw/bin; export UCB_PATH + PATH=$PATH:$UCB_PATH; export PATH + ;; +Darwin) + MACPORTS_PATH=/opt/local/bin:/opt/local/sbin:/opt/local/usr/bin:/opt/local/usr/local/bin; export MACPORTS_PATH + PATH=$HOME/bin:$MACPORTS_PATH:$PATH; export PATH + export DISPLAY=:0.0 + #set completion-ignore-case on + ;; +esac diff --git a/.zshrc b/.zshrc index 18e5e9b..70f088d 100644 --- a/.zshrc +++ b/.zshrc @@ -1,4 +1,20 @@ #complist +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + +# don't put duplicate lines in the history. See bash(1) for more options +export HISTCONTROL=ignoredups + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" + +# set variable identifying the chroot you work in (used in the prompt below) +if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then + debian_chroot=$(cat /etc/debian_chroot) +fi + + +PERL5LIB=$HOME/local/lib64/perl5/site_perl/5.8.8/ autoload -U compinit compinit setopt extended_glob @@ -62,7 +78,9 @@ fi #source ~/.zsh_profile source ~/.zprofile -source ~/.bash_aliases +if [ -f ~/.bash_aliases ]; then + source ~/.bash_aliases +fi source ~/.zshenv if [ -n "`which fortune`" ]; then fortune From 972cc826c2f04d88219a5aed3160233a0d590537 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Sun, 18 Nov 2012 03:04:35 -0800 Subject: [PATCH 2/2] Guifont for OS X --- .gvimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.gvimrc b/.gvimrc index 92e311b..27f0bed 100644 --- a/.gvimrc +++ b/.gvimrc @@ -7,6 +7,7 @@ set guioptions-=r if has("gui_macvim") set fuoptions=maxvert,maxhorz + set guifont=Inconsolata:h18 endif "call AppleTSetPath("~/work/client") "map gg :CmdT