File tree 1 file changed +8
-1
lines changed
cmd/gitsign-credential-cache
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,13 @@ if [ -f "${HOME}/.zshrc" ]; then
192
192
shell_config_file=" ${HOME} /.zshrc"
193
193
elif [ -f " ${HOME} /.bashrc" ]; then
194
194
shell_config_file=" ${HOME} /.bashrc"
195
+ elif [ -f " ${HOME} /.config/fish/config.fish" ]; then
196
+ if [ ! -f " ${HOME} /.config/fish/conf.d/gitsign-credential-cache.fish" ]; then
197
+ echo " set -x GITSIGN_CREDENTIAL_CACHE \" ${gitsign_cache_path} \" " > " ${HOME} /.config/fish/conf.d/gitsign-credential-cache.fish"
198
+ echo " Added GITSIGN_CREDENTIAL_CACHE to ${HOME} /.config/fish/conf.d/gitsign-credential-cache.fish. Please restart your shell to apply the changes."
199
+ else
200
+ echo " GITSIGN_CREDENTIAL_CACHE already exists in ${HOME} /.config/fish/conf.d/gitsign-credential-cache.fish!"
201
+ fi
195
202
else
196
203
echo " No .bashrc or .zshrc found in your home directory."
197
204
exit 1
@@ -221,4 +228,4 @@ and of course if you would like to tail the logs of your service you can do so b
221
228
222
229
``` sh
223
230
tail -f /opt/homebrew/var/log/gitsign-credential-cache.log
224
- ```
231
+ ```
You can’t perform that action at this time.
0 commit comments