cleanup
This commit is contained in:
parent
6b11c3e946
commit
fa31fdc0f9
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue