From 4cf3083fd842b06a943ec28bd91b1561769267a6 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Wed, 6 Mar 2024 18:39:29 +0100 Subject: [PATCH 1/2] profile: Set SSH_AUTH_SOCK to gcr ssh agent --- .profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index 2fe763f..2df3854 100644 --- a/.profile +++ b/.profile @@ -2,8 +2,8 @@ # ~/.profile -- Included by .bash_profile; includes ~/.profile.local # -# SSH key agent is started by systemd user -#export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.sock" +# SSH key agent +[[ -e "$XDG_RUNTIME_DIR/gcr/ssh" ]] && export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh" # GPG key stuff export GPG_TTY=$(tty) From 30e3ab07420d663d5d926afdbf35c989c0ae908c Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Wed, 6 Mar 2024 18:41:04 +0100 Subject: [PATCH 2/2] vimrc: Add shortcut to unindent with Shift-Tab --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index 12dc898..5d48566 100644 --- a/.vimrc +++ b/.vimrc @@ -139,6 +139,9 @@ inoremap j inoremap k inoremap l +" Unindent with Shift-Tab +inoremap << + " Copy and to X clipboard (Ctrl-C in visual mode and Ctrl-V in insert mode) vmap "+y imap "+P