我最近购买了一台新 MacBook,我正在尝试重新配置我的系统。
该应用程序位于应用程序文件夹内,名称为“Sublime Text.app”
我已经通过我在网上找到的其他建议编辑了 sublime.plugin.zsh 文件到“Sublime Text 3.app”以及“Sublime Text.app”,但都没有运气:
elif [[ $('uname') == 'Darwin' ]]; then
local _sublime_darwin_paths > /dev/null 2>&1
_sublime_darwin_paths=(
"/usr/local/bin/subl"
"/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
"/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
"/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
"$HOME/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
"$HOME/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
"$HOME/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
)
for _sublime_path in $_sublime_darwin_paths; do
if [[ -a $_sublime_path ]]; then
alias subl="'$_sublime_path'"
alias st=subl
break
fi
done
fi
alias stt='st .'
我仍然得到
zsh: command not found: st
我只是不知道下一步该去哪里
我在 zsh 上遇到了同样的问题,这完成了工作:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
然后你用 Sublime 启动打开文件 my_file.txt :
subl ./my_file.txt
如果您只想打开 Sublime,请不要指定任何文件。我希望这有帮助 ;)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)