projects
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[scripts.git]
/
kill-unused-xterms.sh
diff --git
a/kill-unused-xterms.sh
b/kill-unused-xterms.sh
index
075b2ba
..
8100b6b
100755
(executable)
--- a/
kill-unused-xterms.sh
+++ b/
kill-unused-xterms.sh
@@
-21,12
+21,15
@@
set -e
set -e
+TERMINAL_APP=xterm
+[[ "${TERMINAL_APP}" ]] || TERMINAL_APP=xterm
+
NB_KILLED=0
NB_TOTAL=0
SHELL_NAME=$(basename ${SHELL})
# Loop through the pid of xterms
NB_KILLED=0
NB_TOTAL=0
SHELL_NAME=$(basename ${SHELL})
# Loop through the pid of xterms
-for ppid in $(ps h -C
xterm
-o pid); do
+for ppid in $(ps h -C
"${TERMINAL_APP}"
-o pid); do
N=0
N=0