sublime.plugin.zsh 410 Bytes
Newer Older
Dylan Hudson's avatar
Dylan Hudson committed
1
# Sublime Text 2 Aliases
2
#unamestr = 'uname'
3
4

if [[ $('uname') == 'Linux' ]]; then
5
	if [ -f '/usr/bin/sublime_text' ]; then
6
		st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
7
	else
8
		st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
9
	fi
10
alias st=st_run
11
elif  [[ $('uname') == 'Darwin' ]]; then
12
	alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
13
fi
Dylan Hudson's avatar
Dylan Hudson committed
14
alias stt='st .'