diff --git a/fish/functions/gpg-sftp.fish b/fish/functions/gsftp.fish similarity index 69% rename from fish/functions/gpg-sftp.fish rename to fish/functions/gsftp.fish index 8269343..590b77f 100644 --- a/fish/functions/gpg-sftp.fish +++ b/fish/functions/gsftp.fish @@ -1,4 +1,4 @@ -function gpg-sftp --wraps sftp +function gsftp --wraps sftp set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh sftp $argv end diff --git a/fish/functions/gpg-ssh-add.fish b/fish/functions/gssh-add.fish similarity index 66% rename from fish/functions/gpg-ssh-add.fish rename to fish/functions/gssh-add.fish index 275f979..ad7991e 100644 --- a/fish/functions/gpg-ssh-add.fish +++ b/fish/functions/gssh-add.fish @@ -1,4 +1,4 @@ -function gpg-ssh-add --wraps ssh-add +function gssh-add --wraps ssh-add set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh ssh-add $argv end diff --git a/fish/functions/gpg-ssh.fish b/fish/functions/gssh.fish similarity index 71% rename from fish/functions/gpg-ssh.fish rename to fish/functions/gssh.fish index fb87a44..f0f88b2 100644 --- a/fish/functions/gpg-ssh.fish +++ b/fish/functions/gssh.fish @@ -1,4 +1,4 @@ -function gpg-ssh --wraps ssh +function gssh --wraps ssh set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh ssh $argv end diff --git a/zshrc b/zshrc index c1549f1..5f187f6 100644 --- a/zshrc +++ b/zshrc @@ -331,9 +331,9 @@ __has_command url2pkg && __has_command mpv && alias mpv="LC_ALL=C mpv" if __has_command gpg gpg2; then - alias gpg-ssh="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh" - alias gpg-ssh-add="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh-add" - alias gpg-sftp="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh sftp" + alias gssh="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh" + alias gssh-add="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh ssh-add" + alias gsftp="SSH_AUTH_SOCK=$GNUPGHOME/S.gpg-agent.ssh sftp" fi if __has_command cryptopassphrase; then