diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-20 12:42:50 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-20 12:42:50 -0500 |
| commit | d6d4c91060b3901b17e5570cfd8f8cb45fe632fb (patch) | |
| tree | 6db3df7c2ddeb9e9043fc4f2ecb97db334d8b63e | |
| parent | e2a0cf2a79b43f9f86b74270f3d96fe300687804 (diff) | |
| download | dotfiles-d6d4c91060b3901b17e5570cfd8f8cb45fe632fb.tar.gz dotfiles-d6d4c91060b3901b17e5570cfd8f8cb45fe632fb.tar.xz | |
Set default editor to nvim where avilable and add helper for SSH askpass
| -rw-r--r-- | kshrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
