DEV Community

Cover image for VS Code terminal issues on kali linux

Posted on

VS Code terminal issues on kali linux

This will be the first time i will be writing any publication, i hope i try my best in making it good enough.

couple of months ago i recently installed kali linux on my personal pc, because i wanted to get familiar with the unix environment, it was a nice experience, so after using it for some time, i heard about the fish command line shell, i installed it on my pc. Fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family. fish includes features like syntax highlighting, autosuggest-as-you-type, and fancy tab completions that just work, with no configuration required.

With the excitement of my new command line shell, i wanted to make it the default shell to be used on my Pc. For one reason or the other, this made my Vs Code terminal not to function properly again, any time i try to use my Vs code terminal it do throw up this error message “The terminal shell path “/usr/local/bin/fish” does not exist”.

After much research i came up with a solution, that was to return or change my shell to the default shell,and these where the steps i used.
Changing Your Shell with chsh

if you decide that you want to change your shell, you probably can, depending on how your system administrator has set things up. You would do so using chsh. We usually change to bash.

  1. You must remember the path to the shell to change shells on this system. Additionally, the password check helps ensure that only the account owner changes the shell.

  2. cat /etc/shells — — — At the shell prompt, list the available shells on your system with cat /etc/shells.

  3. chsh — — Enter chsh (for “change shell”), Some systems prompt for a password, and some don’t.

  4. Type in the path and name of your new shell, or you click on enter to use the default shell that comes with the system.

  5. su — (your user Id) Type in su — and your userid to relog in to verify that everything works correctly. If it doesn’t, use chsh again and change back to the original shell or to a different one. If you can’t change back, email your system administrator for help.

After doing all this it is recommended to restart your system and check the Vs code terminal if it is working properly again.

Thanks for your time, i hope you find this helpful.

Discussion (0)