mirror of
https://github.com/notwa/rc
synced 2024-11-05 16:09:03 -08:00
error-handling in dbusiest
This commit is contained in:
parent
e3cc623633
commit
5c26ac471e
2 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/bin/zsh
|
||||
dbusiest | read -r c d
|
||||
[ -z $c ] && return 1
|
||||
<<<"$c $d"
|
||||
cd $d
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/zsh
|
||||
local c d
|
||||
for d in *(FD); do
|
||||
for d in *(FDN); do
|
||||
print $(find $d 2>/dev/null | wc -l) $d
|
||||
done | sort -nr | while read c d; do
|
||||
echo -E $c $d
|
||||
done
|
||||
[ -z $d ] && return 1
|
||||
|
|
Loading…
Reference in a new issue