Permalink
Browse files

added a little more security for vi

  • Loading branch information...
1 parent 594da65 commit a2f7e8c593550676ec5637dcd7995da928b29104 @ptarjan committed Jan 3, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 viencrypt
View
@@ -10,6 +10,13 @@ else
editor=vi
fi
+# more security for vi
+if [ $editor == "vi" -o $editor == "vim" ]
+then
+ # -n is for noswap and -i NONE is for no .viminfo
+ editor="$editor -n -i NONE"
+fi
+
if [ $# -eq 0 ]
then
echo "No filename specified. Using default $filename"

0 comments on commit a2f7e8c

Please sign in to comment.