mirror of
https://github.com/0intro/wmii
synced 2025-01-23 18:42:09 +03:00
added old version of proglist, much more portable
This commit is contained in:
parent
4915f50d1d
commit
0f460544cb
@ -7,8 +7,13 @@ xwrite() {
|
||||
}
|
||||
|
||||
proglist() {
|
||||
find -L `echo "$@" | tr ':' '\n' | uniq` -perm -u+x -type f -print |
|
||||
sed 's,^.*/,, ' | sort | uniq
|
||||
for dir in `echo $@ | sed 's/^:/.:/; s/::/:.:/; s/:$/:./' | tr : ' '`
|
||||
do
|
||||
for i in $dir/*
|
||||
do
|
||||
test -x "$i" && test ! -d "$i" && echo `basename "$i"`
|
||||
done
|
||||
done | sort | uniq
|
||||
}
|
||||
|
||||
# give wmiiwm a chance to start
|
||||
|
Loading…
Reference in New Issue
Block a user