1
0
Fork 0
This commit is contained in:
Luca Bilke 2024-03-06 15:34:19 +01:00
parent 6b11c3e946
commit fa31fdc0f9
2 changed files with 10 additions and 5 deletions

View File

@ -213,6 +213,14 @@ cmd new_lf_term &{{
[ -n "$TMUX" ] && previewer=ueberzug [ -n "$TMUX" ] && previewer=ueberzug
[ -n "$VIM" ] && previewer=chafa [ -n "$VIM" ] && previewer=chafa
lf -remote "send $id set_previewer $previewer" lf -remote "send $id set_previewer $previewer"
# Clean up tags that don't exist anymore
echo "$(
while read -r l; do
file=$(echo "$l" | cut -d ':' -f 1)
[ -e "$file" ] && echo "$l"
done <"${XDG_DATA_HOME}/lf/tags"
)" >"${XDG_DATA_HOME}/lf/tags"
}} }}
on-cd on-cd

View File

@ -1,12 +1,9 @@
#!/bin/sh #!/bin/sh
read -r script<<EOF script="sudo xbps-install -Su; pkill -RTMIN+8 dwmblocks"
sudo xbps-install -Su
pkill -RTMIN+8 dwmblocks
EOF
if [ -n "$TERM_PROGRAM" ]; then if [ -n "$TERM_PROGRAM" ]; then
$script sh -c "$script"
else else
st -e sh -c " st -e sh -c "
$script $script