Commits

Woojong Koh committed 25fced3

Set VISUAL environment variable and add Pelican to install scripts

Comments (0)

Files changed (4)

 typeset -U path
 
-path=(/Applications/MacVim.app/Contents/MacOS/ $HOME/bin /opt/local/bin /opt/local/sbin $path /Applications/kdiff3.app/Contents/MacOS/ /Applications/MATLAB_R2011b.app/bin/ /Applications/MATLAB_R2011b.app/bin/maci64/)
+path=(/Applications/MacVim.app/Contents/MacOS $HOME/bin /opt/local/bin /opt/local/sbin $path /Applications/kdiff3.app/Contents/MacOS /Applications/MATLAB_R2011b.app/bin /Applications/MATLAB_R2011b.app/bin/maci64)
 
 EDITOR=vim
+VISUAL=vim
 MAC_SYNC="$HOME/Dropbox/Mac Sync/"
 
 # Use MacVim if it exists
 export EDITOR=vim
+export VISUAL=vim
 if hash mvim &> /dev/null; then
 	export EDITOR="mvim -v"
 	alias vim="mvim -v"
+elif hash Vim &> /dev/null; then
+	export EDITOR=Vim
+	alias vim=Vim
 elif [ -f /Applications/MacVim.app/Contents/MacOS/Vim ]; then
 	export EDITOR=/Applications/MacVim.app/Contents/MacOS/Vim
 	alias vim=/Applications/MacVim.app/Contents/MacOS/Vim
 fi
 
 # MATLAB
-alias matlab="/Applications/MATLAB_R2011b.app/bin/matlab -nodesktop -nosplash"
+alias matlab="matlab -nodesktop -nosplash"
 echo * Installing Pyp...
 svn export --force http://pyp.googlecode.com/svn/trunk/ ~/bin
 
+echo.
+echo * Installing Pelican...
+pip install --upgrade pelican Markdown typogrify
+
 pause
 echo "* Installing dotfiles..."
 
 shopt -s dotglob extglob
-for DOTFILE in !(.hg|.hgsub|.hgsubstate|.hgignore|tags|install|install.bat)
+for DOTFILE in !(.hg|.hgsub|.hgsubstate|.hgignore|tags|install.sh|install.bat)
 do
     echo ${DOTFILE}
     TARGET="${HOME}/${DOTFILE}"
 echo "* Changing a login shell to ZSH..."
 chsh -s /bin/zsh
 
-PIP=sudo pip
+PIP="sudo pip"
 if [ -z "$VIRTUAL_ENV" ]; then
     echo
     echo "* Installing distribute and pip..."
 echo "* Installing Pyp..."
 svn export --force http://pyp.googlecode.com/svn/trunk/ ~/bin
 chmod u+x ~/bin/pyp
+
+echo
+echo "* Installing Pelican..."
+$PIP install --upgrade pelican Markdown typogrify