Sublime Forum

Launch in terminal `subl` don't work

#23

Those commands will fail if the file already exists, as you can see from the error message. What’s the result of “file /usr/local/bin/subl”? Could you also run “alias”?

0 Likes

#24
myname@MyName:~/Repositories/Landing_Page$ file /usr/local/bin/subl
/usr/local/bin/subl: symbolic link to /opt/sublime_text/sublime_text
0 Likes

#25
myname@MyName:~/Repositories/Landing_Page$ alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias subl='/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe'
0 Likes

#26

You’ve aliased subl to run /cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe. Remove the alias to fix your issue.

0 Likes

#27

How I can do it right?

0 Likes

#28

The first search result: https://linuxconfig.org/how-to-remove-alias-on-linux

1 Like

#29

Thanks. Now subl works. Problem solved.

0 Likes