mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
commit
3c0c5951ee
|
@ -209,7 +209,10 @@ ueberzug_refresh() {
|
||||||
preview_fifo &
|
preview_fifo &
|
||||||
wait
|
wait
|
||||||
}
|
}
|
||||||
[ "$TERMINAL" != "kitty" ] && [ "$PREVIEW_MODE" ] && exists ueberzug && trap 'ueberzug_refresh' WINCH
|
if [ "$TERMINAL" != "kitty" ] && [ "$PREVIEW_MODE" ] && exists ueberzug; then
|
||||||
|
trap 'ueberzug_refresh' WINCH
|
||||||
|
trap 'rm "$FIFO_UEBERZUG"' INT HUP EXIT
|
||||||
|
fi
|
||||||
|
|
||||||
preview_fifo() {
|
preview_fifo() {
|
||||||
# use cat instead of 'exec <' to avoid issues with dash shell
|
# use cat instead of 'exec <' to avoid issues with dash shell
|
||||||
|
|
|
@ -272,7 +272,10 @@ ueberzug_refresh() {
|
||||||
preview_fifo &
|
preview_fifo &
|
||||||
wait
|
wait
|
||||||
}
|
}
|
||||||
[ "$TERMINAL" != "kitty" ] && [ "$PREVIEW_MODE" ] && exists ueberzug && trap 'ueberzug_refresh' WINCH
|
if [ "$TERMINAL" != "kitty" ] && [ "$PREVIEW_MODE" ] && exists ueberzug; then
|
||||||
|
trap 'ueberzug_refresh' WINCH
|
||||||
|
trap 'rm "$FIFO_UEBERZUG"' INT HUP EXIT
|
||||||
|
fi
|
||||||
|
|
||||||
preview_fifo() {
|
preview_fifo() {
|
||||||
# use cat instead of 'exec <' to avoid issues with dash shell
|
# use cat instead of 'exec <' to avoid issues with dash shell
|
||||||
|
|
Loading…
Reference in a new issue