1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prezto/modules/sublime/init.zsh

30 lines
783 B

#
# Enable Sublime Text
#
# Authors:
# Patrick Baker <patricksbaker@gmail.com>
# Modified version from oh-my-zsh
# Original: https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/sublime/sublime.plugin.zsh
#
local _sublime_darwin_paths
_sublime_darwin_paths=(
/Applications/Sublime\ Text*/Contents/SharedSupport/bin/subl
)
if [[ "$OSTYPE" == linux* ]]; then
if [ -f '/usr/bin/sublime_text' ]; then
alias st=st_run
st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
fi
elif [[ "$OSTYPE" == darwin* ]]; then
for _sublime_path in ${_sublime_darwin_paths}; do
if [[ -a "${_sublime_path}" ]]; then
alias subl="'${_sublime_path}'"
alias st=subl
break
fi
done
fi
alias stt='st .'