bash: use vi mode.
This commit is contained in:
parent
eea770d91f
commit
24a3786210
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
draw() {
|
draw() {
|
||||||
|
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
|
kitten icat --silent --stdin no --transfer-mode memory --place "${w}x${h}@${x}x${y}" "$1" </dev/null >/dev/tty
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
file="$1"
|
file="$1"
|
||||||
|
|
Loading…
Reference in a new issue