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