From 68c376b472b62b72487e8b4ec93a93453e0382c1 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 26 Aug 2022 20:05:54 +0200 Subject: update --- bin/vcat | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/vcat diff --git a/bin/vcat b/bin/vcat new file mode 100755 index 0000000..7c162d4 --- /dev/null +++ b/bin/vcat @@ -0,0 +1,8 @@ +#!/bin/sh + +# Use vim to cat a file. +# Useful if file is vim-encrypted (password silently expected). + +trap "stty '$(stty -g)'" EXIT +stty -echo +vim -es '+%p' '+:q!' "$1" -- cgit v1.2.3