Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`
Expand Down