1
0

zsh: update

This commit is contained in:
2024-01-27 00:10:58 +03:00
parent d5209414e9
commit 9d1de60648
21 changed files with 258 additions and 81 deletions

View File

@@ -1,16 +1,24 @@
#!/bin/zsh
idle() {
[ -n "${1:?}" ] || return 1
local f
f=$(type "$1")
case "$f" in
"$1 is /"*) z-idle-ext "$@" ;;
*) z-idle-int "$@" ;;
"$1 is /"* )
z-idle-ext "$@"
;;
* )
z-idle-int "$@"
;;
esac
}
z-idle-ext() {
[ -n "${1:?}" ] || return 1
local -a s
s+=( $(z-alt-find 'nice -n +40') )
@@ -20,6 +28,8 @@ z-idle-ext() {
}
z-idle-int() {
[ -n "${1:?}" ] || return 1
## execute in subshell
(
{