Skip to content
Snippets Groups Projects
Commit d6119b43 authored by rhatto's avatar rhatto
Browse files

Avoid viminfo if VIM is set as $EDITOR (#50)

parent fc995438
Branches
Tags
No related merge requests found
2014-03-27 - Silvio Rhatto <rhatto@riseup.net>
Avoid viminfo if VIM is set as $EDITOR (#50)
2014-03-22 - 0.3.3 - Silvio Rhatto <rhatto@riseup.net>
Use --recv-keys instead of --refresh-keys
......
......@@ -38,6 +38,7 @@ fi
# Prompt
echo "Press any key to open the decrypted data with $APP, Ctrl-C to abort"
echo "WARNING: please make sure that $APP doesn't leak data to external applications os files"
read key
$APP "$TMPWORK"
......
......@@ -284,6 +284,13 @@ function keyringer_set_env {
fi
fi
# Avoid viminfo, see https://keyringer.pw/trac/ticket/50
if $EDITOR --help | grep -q -e "^VIM"; then
if ! echo $EDITOR | grep -q -- "-i NONE"; then
EDITOR="$EDITOR -i NONE"
fi
fi
if [ ! -f "$OPTIONS" ]; then
echo "No option config was found"
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment