From f0cde2befd31c441ec48dc6c1d012cc1829d145a Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Mon, 5 Sep 2022 22:03:18 -0400 Subject: [PATCH] Updated .profile to include askpass --- .profile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.profile b/.profile index 16e4d40..e069eee 100644 --- a/.profile +++ b/.profile @@ -7,7 +7,11 @@ case `uname` in EDITOR=/usr/bin/nvim SUDO_EDITOR=/usr/bin/nvim VISUAL=/usr/bin/nvim - export SSH_ASKPASS=/usr/lib/ssh/gnome-ssh-askpass3 + if [[ -x "/usr/lib/ssh/gnome-ssh-askpass3" ]]; then + SSH_ASKPASS=/usr/lib/ssh/gnome-ssh-askpass3 + elif [[ -x "/usr/lib/seahorse/ssh-askpass"]]; then + SSH_ASKPASS=/usr/lib/seahorse/ssh-askpass + fi ;; Darwin) EDITOR=nvim @@ -17,9 +21,9 @@ case `uname` in esac # Default Environment -export EDITOR -export VISUAL +export EDITOR SUDO_EDITOR VISUAL export PAGER=less +export SSH_ASKPASS #export VIMINIT=":set runtimepath^=$HOME/.SpaceVim|:source $HOME/.SpaceVim/vimrc" #export SPACEVIMDIR="$HOME/.SpaceVim.d/" #export PATH=$PATH:$HOME/bin:$HOME/go/bin