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

4
5
local _sublime_darwin_subl=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

6
if [[ $('uname') == 'Linux' ]]; then
7
8
9
10
11
	if [ -f '/usr/bin/sublime_text' ]; then
		alias st='/usr/bin/sublime_text&'
	else
		alias st='/usr/bin/sublime-text&'
	fi
12
elif  [[ $('uname') == 'Darwin' ]]; then
13
14
15
16
17
18
	# Check if Sublime is installed in user's home application directory
	if [[ -a $HOME/${_sublime_darwin_subl} ]]; then
		alias st='$HOME/${_sublime_darwin_subl}'
	else
		alias st='${_sublime_darwin_subl}'
	fi
19
fi
Dylan Hudson's avatar
Dylan Hudson committed
20
alias stt='st .'