1
1
Fork 0

fish: Add gpg-ssh commands

This commit is contained in:
Jonathan Schleifer 2020-02-08 18:07:32 +00:00
parent 68184ab397
commit 3e8370b34b
4 changed files with 10 additions and 2 deletions

View file

@ -8,7 +8,7 @@ SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d
SETUVAR _fish_abbr_gpg:gpg2
SETUVAR _fish_abbr_vi:vim
SETUVAR fish_color_autosuggestion:4e4e4e
SETUVAR fish_color_autosuggestion:303030
SETUVAR fish_color_cancel:normal
SETUVAR fish_color_command:205cb3
SETUVAR fish_color_comment:6600cc

View file

@ -0,0 +1,4 @@
function gpg-sftp
set -lx SSH_AUTH_SOCK $HOME/.gnupg/S.gpg-agent.ssh
sftp $argv
end

View file

@ -0,0 +1,4 @@
function gpg-ssh-add
set -lx SSH_AUTH_SOCK $HOME/.gnupg/S.gpg-agent.ssh
ssh-add $argv
end

View file

@ -1,4 +1,4 @@
function gpgssh
function gpg-ssh
set -lx SSH_AUTH_SOCK $HOME/.gnupg/S.gpg-agent.ssh
ssh $argv
end