1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00
Commit graph

47 commits

Author SHA1 Message Date
Rayzeq
2124370900
fix(sublime): pass user's env to sst (#12194) 2024-02-04 18:21:31 +01:00
HoshinoArika
29b5c182be
feat(sublime): add support for Sublime Text 4 on Windows (#10063) 2021-10-06 11:01:20 +02:00
Marc Cornellà
415be382ca sublime: add Sublime Text 4 path for macOS
Fixes #9153
2020-09-04 22:12:21 +02:00
Mark
17be35d1d4
update path for snapd /snap/bin/* which is used by Linux systems (#8752)
Co-authored-by: mark horsfield <markhfromakron@gmail.com>
2020-03-19 12:20:33 +01:00
Marc Cornellà
e38099de96 sublime: ignore wslpath errors if C drive is missing 2019-10-02 13:10:36 +02:00
Marc Cornellà
095d56b5ea Fix WSL check for WSL 2 and simplify nohup in open_command
WSL 2 changes the output of `uname -r`. For instance,

  WSL 1: 4.4.0-18980-Microsoft
  WSL 2: 4.19.67-microsoft-standard

Since WSL 2 lowercases the M, we can match for the rest of the string
which remains lowercase throughout both versions. Another option would
be to match for both upper- and lower-case Ms, like that:

  $(uname -r) = *[Mm]icrosoft*

Fixed use of nohup in open_command where it was only necessary for
xdg-open (and actually harmful for cmd.exe in WSL 2). The current logic
is simpler and more future-proof.
2019-09-19 16:20:02 +02:00
Marc Cornellà
fc9e427ef9
sublime: refactor plugin and fix documentation (#7715)
* convert to 2-space indentation
* standardize sublime function name (subl)
* simplify subl function definition into a single loop
* convert functions into aliases
* simplify alias creation
* search for Sublime Text command only if not found
* reorganize and clean up plugin
* fix README
* simplify cygwin path lookup
* support path lookup for msys (Windows)
* support path lookup for WSL (Windows)
* fix for spaces in sublime path alias
2019-04-15 16:55:18 +02:00
mhennecke
5460333363 sublime: fix typo in cygwin path logic (#7304)
Bug introduced in cea941ce42
2018-10-17 21:28:48 +02:00
Janosch Schwalm
19b925e741 use https everywhere (#6574)
* use https everywhere

* use https links on the files that are left

Also, removed some broken links and updated redirections.
2018-08-07 20:42:01 +02:00
Marc Cornellà
cf5ccf06a0
[subl] Fix local variable definition
Fixes #6757
2018-04-23 13:06:49 +02:00
Andrew Janke
cea941ce42 sublime plugin: make "local" work by wrapping in anon function 2018-04-22 18:37:05 +02:00
Jake Stanley
8f5e5233fb added stn create_project function for stubbing sublime-project files (#6515) 2018-01-22 19:23:36 -08:00
Hong
a56eac7a71 Use OSTYPE instead of uname whenever possible for better speed. (#5496) 2016-10-10 22:24:30 +02:00
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