sublimetext3 - sublime symlink disappeared after upgrading to El Capitan -


i have upgraded os x el capitan , subl . command stopped working zsh: command not found: subl error message.

i have run following command suggested in other posts:

sudo ln -s /applications/sublime\ text.app/contents/sharedsupport/bin/subl /usr/local/bin/subl 

result:

ln: /usr/local/bin/subl: file exists 

in ".bash_profile" ".zsh_profile" have following lines saved:

export path=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$path export editor='subl -w' 

also tried:

sudo ln -s /applications/sublime\ text.app/contents/sharedsupport/bin/subl /usr/bin/subl 

result:

ln: /usr/bin/subl: operation not permitted 

update: seemed work after running following command:

alias subl="'/applications/sublime text.app/contents/sharedsupport/bin/subl'" 

but restart terminal, subl . command stops working.

update2: after pasting following line: alias subl="'/applications/sublime text.app/contents/sharedsupport/bin/subl'" in subl ~/.zshrc, subl . command works after restarting terminal, terminal seems work slower normal, , when open relatively small folders subl . command, @ times it's taking ages show files...

final update: after running sudo rm /usr/local/bin/subl followed sudo ln -s /applications/sublime\ text.app/contents/sharedsupport/bin/subl /usr/local/bin/subl everything works perfectly, @chris.

in el capitan, not allowed write /usr/bin, writing /usr/local/bin ok. default, /usr/local/bin should in path variable.

had same issue. deleting , recreating symlink has fixed problem. perhaps current symlink pointing wrong location after upgrade.

sudo rm /usr/local/bin/subl sudo ln -s /applications/sublime\ text.app/contents/sharedsupport/bin/subl /usr/local/bin/subl 

or sublime text 2 (from – @simen comment):

sudo rm /usr/local/bin/subl sudo ln -s /applications/sublime\ text\ 2.app/contents/sharedsupport/bin/subl /usr/local/bin/subl  

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -