Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Escape whitespace for Sublime Text plugin #1216

Merged
merged 2 commits into from

4 participants

@joshvermaire

escape whitespace for OS X

plugins/sublime/sublime.plugin.zsh
@@ -4,6 +4,6 @@
if [[ $('uname') == 'Linux' ]]; then
alias st='/usr/bin/sublime_text&'
elif [[ $('uname') == 'Darwin' ]]; then
- alias st='open -a /Applications/Sublime Text 2.app'
+ alias st='open -a /Applications/Sublime\ Text\ 2.app'
@lwe
lwe added a note

Instead of open -a, it's probably better to alias the command line binary that's embedded in sublime, alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@joshvermaire

@lwe ahh, hadn't seen that. nice. updated the pull request.

@robbyrussell robbyrussell merged commit ddafaf6 into from
@hacfi

Using OS X 10.7.4 and iTerm2 I currently have the problem that it only works if there is a window open..the open -a method works better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins/sublime/sublime.plugin.zsh
View
2  plugins/sublime/sublime.plugin.zsh
@@ -4,6 +4,6 @@
if [[ $('uname') == 'Linux' ]]; then
alias st='/usr/bin/sublime_text&'
elif [[ $('uname') == 'Darwin' ]]; then
- alias st='open -a /Applications/Sublime Text 2.app'
+ alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
fi
alias stt='st .'
Something went wrong with that request. Please try again.