Having an easier way to navigate via the terminal to frequently-visited pages would be better for UX. For that, we could develop a similar functionality to CDPATH from zsh shell.
The gist of the approach is that if the given input doesn't match any command (outputs "Command not found."), then we could search for a directory with the given input as the name. If such a directory exists, then it should automatically perform the cd action with the given directory as an argument to cd, else command not found.
Since the terminal doesn't have support for env variables right now, the issue is broken down to two separate tasks.
Tasks:
References:
https://jcode.me/cdpath-with-zsh/
Having an easier way to navigate via the terminal to frequently-visited pages would be better for UX. For that, we could develop a similar functionality to CDPATH from zsh shell.
The gist of the approach is that if the given input doesn't match any command (outputs "Command not found."), then we could search for a directory with the given input as the name. If such a directory exists, then it should automatically perform the cd action with the given directory as an argument to cd, else command not found.
Since the terminal doesn't have support for env variables right now, the issue is broken down to two separate tasks.
Tasks:
References:
https://jcode.me/cdpath-with-zsh/