From d6d4c91060b3901b17e5570cfd8f8cb45fe632fb Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sat, 20 Jan 2024 12:42:50 -0500 Subject: Set default editor to nvim where avilable and add helper for SSH askpass --- kshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kshrc b/kshrc index 2cfcfcf..03be252 100644 --- a/kshrc +++ b/kshrc @@ -124,7 +124,7 @@ _set_editor() { } set_editor() { - for editor in vim vi ed ; do + for editor in nvim vim vi ed ; do unalias "$editor" >/dev/null 2>&1 e="$(command -v "$editor")" if [ -n "$e" ] && [ -x "$e" ] ; then @@ -309,6 +309,11 @@ timestamp() { date +%m.%d.%y_%H.%M.%S } +sshSetAskpass() { + export SSH_ASKPASS="$1" + export SSH_ASKPASS_REQUIRE=force +} + #shellcheck disable=SC2120 checkSSHAgent() { if [ "$1" = "-k" ] ; then -- cgit v1.2.3