How to Configure VSCode to Use Alternative Shells

2023.04.02

If manage the installation of alternative shells like ZSH or Fish, as I do via Nix, you might consider configuring VSCode to use that installation instead of using the VSCode’s default profiles. If so, you can do it easily by opening the VSCode settings, defining a new profile, and setting it up as the default:

"terminal.integrated.profiles.osx": {
    "Nix-managed ZSH": {
      "path": "/Users/pepicrft/.nix-profile/bin/zsh"
    }
},
"terminal.integrated.defaultProfile.windows": "Nix-managed ZSH"