dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1f317e310709e11e44ca7431fa69f04d30bebe77
parent a576ac42cfab210c41037903516be104195418a0
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sat, 19 Dec 2020 20:30:37 +0100

lf: fix paste_link

Diffstat:
Mlf/lfrc | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lf/lfrc b/lf/lfrc @@ -104,20 +104,18 @@ cmd paste &{{ # paste as a symbolic link to original cmd paste_link %{{ -for file in $(lf -remote 'load'); do + for file in $(lf -remote 'load'); do if [ ! -n "${mode+1}" ]; then mode="$file" continue fi files+=("$file") done - if [ "${#files[@]}" -lt 1 ]; then + if [ -z "$files" ] || [ "${#files[@]}" -lt 1 ]; then lf -remote "send $id echo no files to link files: ${files}" exit 0 fi - ln -sr $files -t . - fi -done + ln -sr $files -t . }} # preview the highlighted file with quicklook