cleanup
This commit is contained in:
parent
6b11c3e946
commit
fa31fdc0f9
|
@ -213,6 +213,14 @@ cmd new_lf_term &{{
|
|||
[ -n "$TMUX" ] && previewer=ueberzug
|
||||
[ -n "$VIM" ] && previewer=chafa
|
||||
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
|
||||
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
read -r script<<EOF
|
||||
sudo xbps-install -Su
|
||||
pkill -RTMIN+8 dwmblocks
|
||||
EOF
|
||||
script="sudo xbps-install -Su; pkill -RTMIN+8 dwmblocks"
|
||||
|
||||
if [ -n "$TERM_PROGRAM" ]; then
|
||||
$script
|
||||
sh -c "$script"
|
||||
else
|
||||
st -e sh -c "
|
||||
$script
|
||||
|
|
Loading…
Reference in New Issue