dotfiles

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

vifmrun (380B)


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