Files
dotfiles/.local/bin/lfselect
2021-04-07 22:56:28 +01:00

10 lines
184 B
Bash

#!/bin/sh
# Reads file names from stdin and selects them in lf.
while read -r file; do
[ -z "$file" ] && continue
lf -remote "send select \"$file\""
lf -remote "send toggle"
done