I switched my ubuntu shell from bash to zsh.
Everything works fine and base commands like ls are actually working.
But the problem is that my installed apps like Sublime-text and VScode aren't found at all.
I type subl program.c
and get the following response: zsh: command not found: subl
I type which subl
and get the following response: subl not found
Here's my .zshrc file:
export PATH=$HOME/bin:/usr/local/bin:$PATH
...
export ZSH="/home/kianoush/.oh-my-zsh"
...
ZSH_THEME="robbyrussell"
...
plugins=(git zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
...
export PATH="/usr/local/man:$PATH"
I tried redefining the PATH variable but probably I'm doing it wrong. I have the same problem with other apps like VScode.
I fixed it by inputting the following commands in my terminal:
sudo ln -s /snap/sublime-text/109/opt/sublime_text/sublime_text /usr/local/bin/subl
Note that I installed sublime using snap. For versions installed using apt you should probably use the following command:
sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl
Basically, just find your sublime_text files and link them to /usr/local/bin/subl