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
+13
View File
@@ -26,6 +26,19 @@ function ca() {
chezmoi apply "$(chezmoi target-path "${1:-.}")"
}
isbusy() {
local path="${1:-}"
if [ -z "$path" ]; then
echo "Usage: isbusy <path>" >&2
return 1
fi
if ! path="$(realpath -e -- "$path" 2>/dev/null)"; then
echo "isbusy: cannot resolve '$1'" >&2
return 1
fi
sudo lsof +f -- "$path"
}
## Aliases
# Replace ls with eza
if [ -f /usr/bin/eza ]; then