diff --git a/src/install.ts b/src/install.ts index cfc81ef..16a773c 100644 --- a/src/install.ts +++ b/src/install.ts @@ -193,6 +193,9 @@ fi` case 'zsh': fs.writeFileSync(shellInfo.path, 'export PATH=${0:A:h}/bin:$PATH') return writeConfig('.zshrc', initContent) + case 'fish': + fs.writeFileSync(shellInfo.path, 'set -U fish_user_paths (dirname (status --current-filename)) $fish_user_paths') + return writeConfig('.config/fish/config.fish', `test -f '${shellInfo.path}' && source '${shellInfo.path}'`) default: const error = `Unable to set credential helper in PATH. We don't how to set the path for ${shellInfo.shell} shell. Set the helper path in your environment PATH: ${joinBinPath()}`