djui / alias-tips

An oh-my-zsh plugin to help remembering those aliases you defined once
786 stars 50 forks source link

python command not found error #53

Closed aditya81070 closed 4 years ago

aditya81070 commented 4 years ago

I am using this awesome plugin from a long time but today I updated my Ubuntu 18.04 to Ubuntu 20.04. When I tried to source my .zshrc this plugin got the following error:

_alias_tips__preexec:37: command not found: python

After a bit of googling, I found that Ubuntu 20.04 has removed the symlink to python2.x from /usr/bin/python and now it only has python3 command available. Can someone help me how to resolve this issue? This error is coming again and again after every command I use.

aditya81070 commented 4 years ago

Fixed this by changing the command from python to python3 into the plugin code.