updated scripts: better warn messages, added/updated dotfiles

This commit is contained in:
2026-08-03 03:51:23 +02:00
parent 9f2b05b0a1
commit d359c751be
11 changed files with 145 additions and 14 deletions
+14
View File
@@ -144,6 +144,20 @@ function ca
chezmoi apply (chezmoi target-path $path)
end
function isbusy
set -l path "$argv[1]"
if test -z "$path"
echo "Usage: isbusy <path>" >&2
return 1
end
set path (realpath -e -- "$path" 2>/dev/null)
or begin
echo "isbusy: cannot resolve '$argv[1]'" >&2
return 1
end
sudo lsof +f -- "$path"
end
## Aliases
# Replace ls with eza
if type -q eza