Just have a quick question on how to add an alias for SublimeText to my ZSH. I've been to their site where they tell you how to do it within bash, but I don't understand how to do it within ZSH. It has been killing me, I just want to open text files from my command prompt. Anyone out there have experience with ZSH where they have created aliases?
相关问题
- pyenv giving shopt command not found error on maco
- Trying to make a permanent Alias - UNIX
- extern alias with same assembly file name
- How to run code in Sublime text 2 python
- Faulty auto import with path alias
相关文章
- Compile and build with single command line Java (L
- How to specify a custom path for my .zshrc file?
- Shell execution: time vs. /usr/bin/time
- trouble getting sublime to execute with linux term
- NVM cannot load default node with default alias se
-
Perl with Sublime Text 2:
not working - zsh: permission denied: gam
- npm global install commands not found on zsh
Here is an example how to add
subl
command for ZSHhttp://opensourcehacker.com/2012/05/11/sublime-text-2-tips-for-python-and-web-developers/#Open_files_from_comma
Here is another example how to make UNIX EDITOR env var to use Sublime and behave well e.g. when editing subversion and git commit messages
https://github.com/miohtama/ztanesh/blob/master/zsh-scripts/rc/39-osx-vars#L11
https://github.com/miohtama/ztanesh/blob/master/zsh-scripts/bin/subl-wrapper
Aliases in
zsh
are created in the same manner as inbash
.Now somealias will expand to 'something longer' (without the quotes). Put it into
~/.zshrc
to make it persistent.