updated scripts: better warn messages, added/updated dotfiles
This commit is contained in:
+13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user