Woojong Koh avatar Woojong Koh committed be47a0a

Add .hgignore file and move scripts to bin directory

Comments (0)

Files changed (10)

+# use glob syntax.
+syntax: glob
+
+tags
+
+.vim/tmp/
+.weechat/logs/
+.weechat/weechat.log
 typeset -U path
 
-path=($HOME/bin /opt/local/bin /opt/local/sbin $path /Applications/kdiff3.app/Contents/MacOS/ /opt/local/libexec/perl5.12/sitebin/)
+path=($HOME/bin /opt/local/bin /opt/local/sbin $path /Applications/kdiff3.app/Contents/MacOS/)

bin/bootstrap_mac.sh

 sudo port install tig
 sudo port install weechat +aspell +perl +python +tls
 sudo port install wget
-sudo cpan App::Ack
+sudo /usr/bin/cpan App::Ack
 
 # tmux
 sudo port install tmux

bin/install_distribute.py

+#!/usr/bin/env python
+import urllib
+
+if __name__ == '__main__':
+    #curl -O http://python-distribute.org/distribute_setup.py
+    filename, _ = urllib.urlretrieve('http://python-distribute.org/distribute_setup.py')
+    #sudo python distribute_setup.py
+    execfile(filename)

bin/update_subrepos

+#!/bin/bash
+
+# Git
+hg onsub --ignore-errors "git checkout master"
+hg onsub --ignore-errors "git pull"
+cd .vim/bundle/vim-powerline/; git checkout develop
+
+# Mercurial
+hg onsub --ignore-errors "hg pull --update"

bin/update_tags.py

-#!/usr/bin/python
+#!/usr/bin/env python
 
 """update_tags.py"""
 
 echo "* Installing dotfiles..."
 
 shopt -s dotglob extglob
-for DOTFILE in !(.hg|.hgsub|.hgsubstate|tags|install|install.bat|update_subrepos|bootstrap_mac.sh|install_distribute.py)
+for DOTFILE in !(.hg|.hgsub|.hgsubstate|.hgignore|tags|install|install.bat)
 do 
     echo ${DOTFILE}
     TARGET="${HOME}/${DOTFILE}"
 curl -O http://python-distribute.org/distribute_setup.py
 sudo python distribute_setup.py
 sudo easy_install --upgrade pip
+rm distribute_setup.py
+sudo rm distribute-*.tar.gz
 
 echo
 echo "* Installing Mercurial..."
 
 echo
 echo "* Installing Ack..."
-sudo cpan App::Ack
+sudo /usr/bin/cpan App::Ack
 @echo off
 rem CAUTION: %USERPROFILE% AND %~dp0 SHOULD BE IN THE SAME FILESYSTEM. (/H)
 
+rem %USERPROFILE%/bin
+mklink /H %USERPROFILE%\bin %~dp0\bin
+
 rem Vim
 del /Q %USERPROFILE%\_vimrc
 mklink /H %USERPROFILE%\_vimrc %~dp0\.vimrc
 mklink /H %USERPROFILE%\.hgrc %~dp0\.hgrc
 copy NUL %USERPROFILE%\.hgrc_mac
 
-set PATH=%PATH%;C:\Python27;C:\Python27\Scripts
+rem Git
+del /Q %USERPROFILE%\.gitconfig
+mklink /D %USERPROFILE%\.gitconfig %~dp0\.gitconfig
+
+set PATH=%USERPROFILE%\bin;%PATH%;C:\Python27;C:\Python27\Scripts
 
 echo.
-echo Installing distribute and pip...
-python install_distribute.py
+echo * Installing distribute and pip...
+python %USERPROFILE%\bin\install_distribute.py
 easy_install --upgrade pip
 
 echo.
-echo Installing extensions...
+echo * Installing Mercurial...
+sudo pip install --upgrade mercurial
+
+echo.
+echo * Installing extensions...
 pip install --upgrade hg-git
 pip install --upgrade gntp
 
 echo.
-echo Installing virtualenv...
+echo * Installing virtualenv...
 pip install --upgrade virtualenv
 pip install --upgrade virtualenvwrapper
 
 echo.
-echo Installing SCons...
+echo * Installing SCons...
 pip install --upgrade scons
 
-
 echo.
-echo Installing Ack...
+echo * Installing Ack...
 cpan App::Ack
 
 pause

install_distribute.py

-import urllib
-
-if __name__ == '__main__':
-    #curl -O http://python-distribute.org/distribute_setup.py
-    filename, _ = urllib.urlretrieve('http://python-distribute.org/distribute_setup.py')
-    #sudo python distribute_setup.py
-    execfile(filename)

update_subrepos

-#!/bin/bash
-
-# Git
-hg onsub --ignore-errors "git checkout master"
-hg onsub --ignore-errors "git pull"
-cd .vim/bundle/vim-powerline/; git checkout develop
-
-# Mercurial
-hg onsub --ignore-errors "hg pull --update"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.