diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-28 09:12:24 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-28 09:12:24 +0100 |
commit | bd60f8db14abe939fa72b41d86dd4c37f46b20fd (patch) | |
tree | c488f24d8f46a4f3749cdc6c83fc1e03e9f8de47 | |
parent | f5168c40fc673a071264f2619a82fa07ab010bf8 (diff) |
Updates fish stuff as Ive started using it again
-rw-r--r-- | fish2024/config.fish | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/fish2024/config.fish b/fish2024/config.fish index e6ecadc..edf9773 100644 --- a/fish2024/config.fish +++ b/fish2024/config.fish @@ -1,16 +1,23 @@ +# unbind Y to paste +#bind \cy '' + if status is-interactive # Commands to run in interactive sessions can go here - set -gx GPG_TTY (tty) set -gx EDITOR vim - set -U fish_greeting - set -gx LEDGER_FILE $HOME/Budget/hledger/hledger/budget.ledger + set -gx GPG_TTY (tty) + set -gx LEDGER_FILE $HOME/Budget/hledger/budget.ledger + set -gx BORG_PASSCOMMAND "pass borg-passphrase" end -# https://gist.github.com/josh-padnick/c90183be3d0e1feb89afd7573505cab3 -#jif test -z (pgrep ssh-agent) -#j eval (ssh-agent -c) > /dev/null -#j set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK -#j set -Ux SSH_AGENT_PID $SSH_AGENT_PID -#jend +if not set -Ux SSH_AUTH_SOCK && not set -Ux SSH_AGENT_PID + eval (ssh-agent -c) > /dev/null + set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK + set -Ux SSH_AGENT_PID $SSH_AGENT_PID +end . ~/perl5/perlbrew/etc/perlbrew.fish + +#direnv prints all the variables whenever I start a new shell +direnv hook fish | source +# recommended to use this line to stop the env variables being printed every time +#eval (direnv hook fish) |