home/vscode: fix zsh tab completion in other terminal issue

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-05 10:10:02 +01:00
parent e9fb3d71d8
commit cb3318bc93
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -27,7 +27,15 @@ in
programs.vscode = {
enable = true;
package = pkgs.vscode;
package = pkgs.vscode.overrideAttrs (prev: {
# NOTE: this messes up zsh's tab completion in the terminal whenever code is started
# from within a shell
preFixup = prev.preFixup + ''
gappsWrapperArgs+=(
--unset TMUX_PANE
)
'';
});
userSettings = let
editor = mapPrefixToSet "editor" {