Commit Graph
4 Commits
Author SHA1 Message Date
Paul Melnikowandncanceill 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
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
Paul Melnikow 3007f96090 NVM: Avoid providing completions when nvm is not installed 2013-09-05 10:09:19 -04:00
Paul Melnikow e3c02bfeba Plugin for Node Version Manager 2013-09-04 18:07:58 -04:00