dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

vu (309B)


      1 #!/usr/bin/env sh
      2 export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}"
      3 
      4 cleanup() {
      5     rm "$FIFO_UEBERZUG" 2>/dev/null
      6     pkill -P $$ 2>/dev/null
      7 }
      8 
      9 rm "$FIFO_UEBERZUG" 2>/dev/null
     10 mkfifo "$FIFO_UEBERZUG"
     11 trap cleanup EXIT
     12 tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash &
     13 
     14 vifm
     15 cleanup