aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-01-20 12:42:50 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-01-20 12:42:50 -0500
commitd6d4c91060b3901b17e5570cfd8f8cb45fe632fb (patch)
tree6db3df7c2ddeb9e9043fc4f2ecb97db334d8b63e
parente2a0cf2a79b43f9f86b74270f3d96fe300687804 (diff)
downloaddotfiles-d6d4c91060b3901b17e5570cfd8f8cb45fe632fb.tar.gz
dotfiles-d6d4c91060b3901b17e5570cfd8f8cb45fe632fb.tar.xz
Set default editor to nvim where avilable and add helper for SSH askpass
-rw-r--r--kshrc7
1 files changed, 6 insertions, 1 deletions
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