bash: use vi mode.

This commit is contained in:
Andrey Parhomenko 2024-07-27 19:38:29 +05:00
parent eea770d91f
commit 24a3786210
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,7 @@
. $HOME/.shrc
export PS1='; '
set -o vi
test -r "$LOGIN" && . "$LOGIN"
test -r "$SETENV" && . "$SETENV" && setenv bash

View file

@ -1,7 +1,9 @@
#!/bin/sh
draw() {
kitten icat --silent --stdin no --transfer-mode memory --place "${w}x${h}@${x}x${y}" "$1" </dev/null >/dev/tty
exit 1
if which kitten > /dev/null ; then
kitten icat --silent --stdin no --transfer-mode memory --place "${w}x${h}@${x}x${y}" "$1" </dev/null >/dev/tty
exit 1
fi
}
file="$1"