mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-14 10:46:58 -07:00
* usr/lib/byobu/processes:
- Handle stderr for ps, e.g. unsupported options - Remove unnecessary awk call; wc -l only outputs one value
This commit is contained in:
parent
7cd5821d80
commit
9eaa9598d2
2 changed files with 6 additions and 3 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -31,6 +31,9 @@ byobu (5.128) unreleased; urgency=medium
|
|||
available
|
||||
* usr/lib/byobu/logo:
|
||||
- Add logo for OpenWrt
|
||||
* usr/lib/byobu/processes:
|
||||
- Handle stderr for ps, e.g. unsupported options
|
||||
- Remove unnecessary awk call; wc -l only outputs one value
|
||||
* usr/share/byobu/keybindings/f-keys.tmux:
|
||||
- Remove -k for new-window. In older versions of tmux, -k without
|
||||
-t <target-window> had no effect. In tmux 2.8, -k without -t will
|
||||
|
|
|
@ -20,15 +20,15 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
__processes_detail() {
|
||||
ps -ej
|
||||
ps -ej 2>/dev/null
|
||||
}
|
||||
|
||||
__processes() {
|
||||
local count=
|
||||
if [ -r /proc ]; then
|
||||
count=$(ls -d /proc/[0-9]* 2>/dev/null| wc -l)
|
||||
count=$(ls -d /proc/[0-9]* 2>/dev/null | wc -l)
|
||||
else
|
||||
count=$(ps -ef | wc -l | awk '{print $1}')
|
||||
count=$(ps -ef | wc -l)
|
||||
fi
|
||||
[ -n "$count" ] || return
|
||||
color b y w; printf "%s" "$count"; color -; color y w; printf "&"; color --
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue