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 . $HOME/.shrc
export PS1='; ' export PS1='; '
set -o vi
test -r "$LOGIN" && . "$LOGIN" test -r "$LOGIN" && . "$LOGIN"
test -r "$SETENV" && . "$SETENV" && setenv bash test -r "$SETENV" && . "$SETENV" && setenv bash

View file

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