fish: fix function for 'y' not removing tmp file

This commit is contained in:
Nico 2026-02-15 14:49:40 +11:00
parent 2f9c1653b8
commit db612f1bf1
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0

View file

@ -4,5 +4,5 @@ function y
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
command rm -f -- "$tmp"
end