From 78d5e2082554d370f43216406f84872eaa2a4e5b Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 17 Oct 2024 22:46:39 -0500 Subject: remove zsh and nvim configs from this repo and move to another --- zsh/zscripts/.lfub.zsh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 zsh/zscripts/.lfub.zsh (limited to 'zsh/zscripts/.lfub.zsh') diff --git a/zsh/zscripts/.lfub.zsh b/zsh/zscripts/.lfub.zsh deleted file mode 100755 index 2e1f7f4..0000000 --- a/zsh/zscripts/.lfub.zsh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# This is a wrapper script for lf that allows it to create image previews with -# ueberzug. This works in concert with the lf configuration file and the -# lf-cleaner script. - -cleanuplf() { - exec 3>&- - \rm "$FIFO_UEBERZUG" -} - -lfub() { - dircache=/tmp/$USER-lflastdir - lfopt="--last-dir-path=$dircache" - if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then - lf "$lfopt" "$@" - else - export FIFO_UEBERZUG="/tmp/ueberzug-$$" - mkfifo "$FIFO_UEBERZUG" - ueberzug layer -s <"$FIFO_UEBERZUG" -p json & - exec 3>"$FIFO_UEBERZUG" - trap cleanuplf HUP INT QUIT TERM PWR EXIT - lf "$lfopt" "$@" 3>&- - fi - [ -f "$dircache" ] && dir="$(cat "$dircache")" && [ -d "$dir" ] && cd "$dir" -} - -alias lf="lfub" -- cgit v1.2.3