Commit graph

34 commits

Author SHA1 Message Date
Peter Han 073ea01cce Create an alias to open up sublime project (#5258)
* Adding an alias to open up the sublime project

* README update for stp command
2016-08-14 18:00:19 -07:00
Tyler Charlesworth 2266368b77 Update sublime.plugin.zsh 2015-09-27 16:51:38 -07:00
Tyler Charlesworth 07f08aa731 Adds Cygwin support 2015-09-24 01:25:22 -07:00
Robby Russell a7784636d8 Merge pull request #3929 from GunfighterJ/GunfighterJ-patch-sublime3
Add sublime text 3 paths to check list
2015-06-14 22:00:32 -07:00
CkEsc c28b226af2 Fix README.md for sst command 2015-06-12 00:14:59 +02:00
Paul Melnikow 4c409b0de9 sublime: Make subl a function so it can be called from functions in other modules
Without this change, whether a function can invoke 'subl' depends on the order in which modules are loaded. With this change, the order doesn't matter.

zsh resolves aliases at parse time not run time, which means if you invoke an alias from a function, the alias must be defined before the function.

See http://stackoverflow.com/a/25532276/893113 which refers to an explanation of this limitation.

For code which may be used non-interactively, the recommend workaround is to use functions instead of aliases.
2015-06-11 21:10:34 +02:00
Jonathan Roemer e8ac8b9b5f Added support for detecting Sublime Text 3 on Arch Linux 2015-06-11 21:10:34 +02:00
GunfighterJ 0c8cb11d44 Add sublime text 3 paths to check list 2015-05-25 16:02:26 -05:00
wyldphyre 01ec37e5f8 Added missing 'stt' command alias 2015-02-24 21:05:58 +08:00
wyldphyre 2e1b964c00 Add README.md file 2015-02-24 20:58:50 +08:00
CkEsc 5b90092555 Sublime Text plugin: added sst alias for sudo run sublime 2015-01-11 17:52:08 +03:00
Christian Höltje 63bae2aba9 Use $OSTYPE instead of uname to speed things up
The $OSTYPE variable is set at ZSH compile time and can be safely used
to determine the OS of the system. e.g. darwin (os x)
2014-07-23 09:18:14 -04:00
Arandi López dbca185b05 Add /usr/bin/subl path for who has linked sublime text there 2014-06-28 10:12:20 +02:00
Theodore Kokkoris b569273012 Removed unnecessary execute permissions for some plugins 2014-05-29 10:58:17 +02:00
Kaiwen Xu 2691520d6f Integrate changes from #1841. 2014-03-02 14:13:55 -05:00
Kaiwen Xu 5ba96e9a05 Fixed sublime plugin behaviors.
- Fixed subl search path order in Mac because Sublime Text 3 is named
  Sublime Text.app by default instead of Sublime Text 3.app and they are
  mostly likely to be placed in /Applications instead of
  $HOME/Applications.
- Fixed sublime text binary path in Linux. The sublime_text binary
  installed by Ubuntu installer is placed in /opt/sublime_text/sublime_text
  instead of /usr/bin/sublime_text.
- Use zsh's built-in process detach syntax instead of nohup.
2014-03-02 03:59:27 -05:00
Gaetan Semet ae1fe0029c Add support for sublime 3
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2013-11-17 00:03:16 +01:00
Paul Melnikow 4da4d12d33 Sublime Text: Harmonize alias with the Sublime Text install instructions
The typical command is `subl`, not `st`. Leaving both for backward compatibility.

See http://www.sublimetext.com/docs/2/osx_command_line.html
2013-09-05 10:12:12 -04:00
Kaiwen Xu 17a092b0ff Change sublime text path select priority on mac.
User changed symbolic link for sublime binary is now top priority,
since this allows users to actually specify which version of sublime
they want to use. Sublime text 2 binary has higher priority over
sublime text (3) binary, since sublime text 2 is considered more
stable.
2013-04-29 03:19:31 -04:00
Robby Russell 73edf1f1eb Merge pull request #1704 from laggyluke/st3
Support for Sublime Text 3
2013-04-23 19:56:26 -07:00
George Miroshnykov 0c9b4329ef Support for Sublime Text 3 2013-04-10 10:54:59 +03:00
dsx 6271941a91 Prevents echo of _sublime_darwin_paths contents 2013-04-07 09:12:30 -04:00
Ian MacLeod 3d81ecfb43 Support for Sublime Text 3, with fallback 2013-02-08 23:00:49 -08:00
Robby Russell 9ae128983a Merge pull request #1454 from gAmUssA/patch-4
Update plugins/sublime/sublime.plugin.zsh
2012-12-04 06:33:13 -08:00
Robby Russell 96f35e6949 Merge pull request #1259 from bwl/sublime-fix
Adding logic for ~/Applications folder installs of Sublime Text 2
2012-12-02 12:43:07 -08:00
Viktor Gamov 54f1990511 Update plugins/sublime/sublime.plugin.zsh
updated run sublime on linux with parameters
2012-12-02 13:54:24 -05:00
汤凯 Kevin Tong 19aefa2bd6 Update plugins/sublime/sublime.plugin.zsh
Considering the situation when installing sublime text via apt-get (WebUpd8 Sublime Text 2 PPA)
2012-11-05 16:55:55 +08:00
bwl aaf705c5fa Adding logic for ~/Applications folder installs of Sublime Text 2 2012-07-29 00:53:20 -04:00
Josh Vermaire a15bcd6461 utilize sublime's embedded command line binary 2012-07-09 00:11:07 -07:00
Josh Vermaire 92b6cae026 escape whitespace 2012-07-08 23:34:27 -07:00
Varun Vijayaraghavan 8923694fb4 Fixed a bug in checking the platform 2012-05-24 11:33:19 -04:00
Varun Vijayaraghavan 6f859c5837 Add Sublime Text 2 alias for Linux.
Detects the platform using "uname", and sets the alias accordingly.
If you are using Linux, this assumes that you have created a
symbolic link to /usr/bin/sublime_text.
2012-05-21 10:42:12 -04:00
Dylan Hudson 99a3c3c5c8 changed the alias to use to cli provided by sublime text 2012-04-22 08:36:37 -07:00
Dylan Hudson 5eb466a788 added aliases for sublime text 2012-04-19 00:14:55 -07:00