diff options
| author | Marc Vertes <mvertes@free.fr> | 2022-08-26 20:05:54 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2022-08-26 20:05:54 +0200 |
| commit | 68c376b472b62b72487e8b4ec93a93453e0382c1 (patch) | |
| tree | c5cbdf1bf38b09840d9f942993c805118526e03a | |
| parent | 5e90fa775e4c654d5383e7a14876dde51ee94913 (diff) | |
update
| -rwxr-xr-x | bin/vcat | 8 |
1 files changed, 8 insertions, 0 deletions
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" |
