Have ssh use GPG
This commit is contained in:
parent
d2a7d940ec
commit
013350807b
1 changed files with 9 additions and 2 deletions
|
|
@ -1,4 +1,13 @@
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
|
set -e SSH_AUTH_SOCK
|
||||||
|
set -U -x SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
|
||||||
|
set -x GPG_TTY (tty)
|
||||||
|
|
||||||
|
gpgconf --launch gpg-agent
|
||||||
|
|
||||||
|
set -gx EDITOR /usr/bin/hx
|
||||||
|
|
||||||
# Starship custom prompt
|
# Starship custom prompt
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
|
|
||||||
|
|
@ -40,5 +49,3 @@ if status is-interactive
|
||||||
echo -en "\e]133;A\e\\"
|
echo -en "\e]133;A\e\\"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set -gx EDITOR /usr/bin/hx
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue