I am using i3, and by default, it uses
sh when starting process with the i3 config
exec command. This is fine and dandy, but that means the environmental variables created in my .zshrc do not get carried over to child process of i3 (pretty much any program I open).
To fix this, I tried changing the
/bin/sh symbolic link to point to
/bin/zsh instead like so:
$ which sh /bin/sh $ sudo rm /bin/sh $ sudo ln -s /bin/zsh /bin/sh
This creates the symbolic link I expected it to:
$ ls -la /bin/sh lrwxrwxrwx 1 root root 8 Mar 13 22:16 /bin/sh -> /bin/zsh $ which sh /bin/sh
However, when I try to run
sh starts intead of
zsh. The same occurs when I run
/bin/sh. I logged out and then logged back in. It did not change anything.
zsh commands start
zsh as expected.