Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
309 B

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