mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-19 21:13:19 -07:00
* debian/config, debian/postinst, experimental/byobu-aggregate-status,
usr/bin/byobu, usr/bin/byobu-ctrl-a, usr/bin/byobu-disable, usr/bin/byobu-enable, usr/bin/byobu-export, usr/bin/byobu-janitor, usr/bin/byobu-launch, usr/bin/byobu-launcher, usr/bin/byobu- launcher-install, usr/bin/byobu-launcher-uninstall, usr/bin/byobu- quiet, usr/bin/byobu-reconnect-sockets, usr/bin/byobu-select- profile, usr/bin/byobu-shell, usr/bin/byobu-silent, usr/bin/byobu- status, usr/bin/byobu-status-detail, usr/lib/byobu/apport, usr/lib/byobu/arch, usr/lib/byobu/battery, usr/lib/byobu/cpu_count, usr/lib/byobu/cpu_freq, usr/lib/byobu/cpu_temp, usr/lib/byobu/custom, usr/lib/byobu/date, usr/lib/byobu/disk, usr/lib/byobu/disk_io, usr/lib/byobu/ec2_cost, usr/lib/byobu/fan_speed, usr/lib/byobu/hostname, usr/lib/byobu/ip_address, usr/lib/byobu/load_average, usr/lib/byobu/logo, usr/lib/byobu/mail, usr/lib/byobu/mem_available, usr/lib/byobu/mem_used, usr/lib/byobu/menu, usr/lib/byobu/network, usr/lib/byobu/notify_osd, usr/lib/byobu/processes, usr/lib/byobu/raid, usr/lib/byobu/rcs_cost, usr/lib/byobu/reboot_required, usr/lib/byobu/release, usr/lib/byobu/services, usr/lib/byobu/swap, usr/lib/byobu/time, usr/lib/byobu/time_utc, usr/lib/byobu/trash, usr/lib/byobu/updates_available, usr/lib/byobu/uptime, usr/lib/byobu/users, usr/lib/byobu/whoami, usr/lib/byobu/wifi_quality, usr/sbin/byobu-classroom: - add vi modelines
This commit is contained in:
parent
8be11ec0f2
commit
24cb23d7f0
59 changed files with 143 additions and 0 deletions
27
debian/changelog
vendored
27
debian/changelog
vendored
|
@ -5,6 +5,33 @@ byobu (4.13) unreleased; urgency=low
|
||||||
- fix but where /proc/net/dev has so much traffic that integers
|
- fix but where /proc/net/dev has so much traffic that integers
|
||||||
run up against colons with no whitespace
|
run up against colons with no whitespace
|
||||||
|
|
||||||
|
[ Dustin Kirkland ]
|
||||||
|
* debian/config, debian/postinst, experimental/byobu-aggregate-status,
|
||||||
|
usr/bin/byobu, usr/bin/byobu-ctrl-a, usr/bin/byobu-disable,
|
||||||
|
usr/bin/byobu-enable, usr/bin/byobu-export, usr/bin/byobu-janitor,
|
||||||
|
usr/bin/byobu-launch, usr/bin/byobu-launcher, usr/bin/byobu-
|
||||||
|
launcher-install, usr/bin/byobu-launcher-uninstall, usr/bin/byobu-
|
||||||
|
quiet, usr/bin/byobu-reconnect-sockets, usr/bin/byobu-select-
|
||||||
|
profile, usr/bin/byobu-shell, usr/bin/byobu-silent, usr/bin/byobu-
|
||||||
|
status, usr/bin/byobu-status-detail, usr/lib/byobu/apport,
|
||||||
|
usr/lib/byobu/arch, usr/lib/byobu/battery, usr/lib/byobu/cpu_count,
|
||||||
|
usr/lib/byobu/cpu_freq, usr/lib/byobu/cpu_temp,
|
||||||
|
usr/lib/byobu/custom, usr/lib/byobu/date, usr/lib/byobu/disk,
|
||||||
|
usr/lib/byobu/disk_io, usr/lib/byobu/ec2_cost,
|
||||||
|
usr/lib/byobu/fan_speed, usr/lib/byobu/hostname,
|
||||||
|
usr/lib/byobu/ip_address, usr/lib/byobu/load_average,
|
||||||
|
usr/lib/byobu/logo, usr/lib/byobu/mail, usr/lib/byobu/mem_available,
|
||||||
|
usr/lib/byobu/mem_used, usr/lib/byobu/menu, usr/lib/byobu/network,
|
||||||
|
usr/lib/byobu/notify_osd, usr/lib/byobu/processes,
|
||||||
|
usr/lib/byobu/raid, usr/lib/byobu/rcs_cost,
|
||||||
|
usr/lib/byobu/reboot_required, usr/lib/byobu/release,
|
||||||
|
usr/lib/byobu/services, usr/lib/byobu/swap, usr/lib/byobu/time,
|
||||||
|
usr/lib/byobu/time_utc, usr/lib/byobu/trash,
|
||||||
|
usr/lib/byobu/updates_available, usr/lib/byobu/uptime,
|
||||||
|
usr/lib/byobu/users, usr/lib/byobu/whoami,
|
||||||
|
usr/lib/byobu/wifi_quality, usr/sbin/byobu-classroom:
|
||||||
|
- add vi modelines
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Jun 2011 11:37:56 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Jun 2011 11:37:56 -0500
|
||||||
|
|
||||||
byobu (4.12-0ubuntu1) oneiric; urgency=low
|
byobu (4.12-0ubuntu1) oneiric; urgency=low
|
||||||
|
|
2
debian/config
vendored
2
debian/config
vendored
|
@ -7,3 +7,5 @@ db_input medium byobu/launch-by-default || true
|
||||||
db_go
|
db_go
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
2
debian/postinst
vendored
2
debian/postinst
vendored
|
@ -36,3 +36,5 @@ if [ -d "$DIR" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -70,3 +70,5 @@ done
|
||||||
|
|
||||||
# Print
|
# Print
|
||||||
sed -e ':a;N;$!ba;s/\n//g' "$RUN/$PKG/"*.status > "$RUN/$PKG.status"
|
sed -e ':a;N;$!ba;s/\n//g' "$RUN/$PKG/"*.status > "$RUN/$PKG.status"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -117,3 +117,5 @@ else
|
||||||
# Launch with command line args
|
# Launch with command line args
|
||||||
exec screen $SCREEN_TERM $NAME $PROFILE "$@"
|
exec screen $SCREEN_TERM $NAME $PROFILE "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -57,3 +57,5 @@ done
|
||||||
screen -X at 0 source "$HOME/.$PKG/profile"
|
screen -X at 0 source "$HOME/.$PKG/profile"
|
||||||
echo "To modify this behavior again later, run 'byobu-ctrl-a'"
|
echo "To modify this behavior again later, run 'byobu-ctrl-a'"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -32,3 +32,5 @@ case "$STY" in
|
||||||
screen -X at 0 quit
|
screen -X at 0 quit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -29,3 +29,5 @@ echo -n "Press <enter> to continue..."
|
||||||
$(head -n1)
|
$(head -n1)
|
||||||
|
|
||||||
exec byobu
|
exec byobu
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -27,3 +27,5 @@ where you are not the root user, simply:
|
||||||
* And follow the instructions in the README
|
* And follow the instructions in the README
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -181,3 +181,5 @@ fi
|
||||||
|
|
||||||
# Clean up flag
|
# Clean up flag
|
||||||
rm -f "$FLAG"
|
rm -f "$FLAG"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -52,3 +52,5 @@ if [ "$LC_BYOBU" != "0" ] && [ "$BYOBU_DISABLE" != "1"]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
true
|
true
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -40,3 +40,5 @@ else
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
false
|
false
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -72,3 +72,5 @@ case "$SHELL" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -38,3 +38,5 @@ mkdir -p "$DATA"
|
||||||
touch "$DATA/disable-autolaunch"
|
touch "$DATA/disable-autolaunch"
|
||||||
# install disabled motd printing; re-enable
|
# install disabled motd printing; re-enable
|
||||||
rm -f "$HOME"/.hushlogin
|
rm -f "$HOME"/.hushlogin
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -32,3 +32,5 @@ else
|
||||||
echo "hardstatus lastline '$status'" >> "$HOME/.$PKG/keybindings"
|
echo "hardstatus lastline '$status'" >> "$HOME/.$PKG/keybindings"
|
||||||
fi
|
fi
|
||||||
screen -X at 0 source "$HOME/.$PKG/profile"
|
screen -X at 0 source "$HOME/.$PKG/profile"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -45,3 +45,5 @@ newest "$HOME/.gnupg/"gpg-agent-info-* && . "$_RET" && export GPG_AGENT_INFO
|
||||||
# Reconnect dbus, source the most recently touched session-bus
|
# Reconnect dbus, source the most recently touched session-bus
|
||||||
# Sorry, ls -t is needed here, to sort by time
|
# Sorry, ls -t is needed here, to sort by time
|
||||||
newest "$HOME/.dbus/session-bus/*" && . "$_RET" && export DBUS_SESSION_DBUS_ADDRESS
|
newest "$HOME/.dbus/session-bus/*" && . "$_RET" && export DBUS_SESSION_DBUS_ADDRESS
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -216,3 +216,5 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -35,3 +35,5 @@ if [ ! -e "$FLAG" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "$SHELL" -a -x "$SHELL" ] && exec "$SHELL" || exec /bin/sh
|
[ -n "$SHELL" -a -x "$SHELL" ] && exec "$SHELL" || exec /bin/sh
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -30,3 +30,5 @@ else
|
||||||
echo "caption splitonly ''" >> "$HOME/.$PKG/keybindings"
|
echo "caption splitonly ''" >> "$HOME/.$PKG/keybindings"
|
||||||
fi
|
fi
|
||||||
exec byobu-quiet "$@"
|
exec byobu-quiet "$@"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -90,3 +90,5 @@ case "$P" in
|
||||||
find_script "$P" && . "${_RET}"
|
find_script "$P" && . "${_RET}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -23,3 +23,5 @@ else
|
||||||
(which sensible-pager >/dev/null) && PAGER=sensible-pager || PAGER=less
|
(which sensible-pager >/dev/null) && PAGER=sensible-pager || PAGER=less
|
||||||
byobu-status --detail | $PAGER
|
byobu-status --detail | $PAGER
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -40,3 +40,5 @@ for i in /var/crash/*.crash; do
|
||||||
color y k; printf "{!}"; color --
|
color y k; printf "{!}"; color --
|
||||||
exit 0
|
exit 0
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -23,3 +23,5 @@ if [ "$1" = "--detail" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%s " $(uname -m)
|
printf "%s " $(uname -m)
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -82,3 +82,5 @@ battery_info() {
|
||||||
}
|
}
|
||||||
|
|
||||||
battery_info "$@"
|
battery_info "$@"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -23,3 +23,5 @@ if [ "$1" = "--detail" ]; then
|
||||||
fi
|
fi
|
||||||
count=$(getconf _NPROCESSORS_ONLN 2>/dev/null || grep -ci "^processor" /proc/cpuinfo)
|
count=$(getconf _NPROCESSORS_ONLN 2>/dev/null || grep -ci "^processor" /proc/cpuinfo)
|
||||||
[ "$count" = "1" ] || printf "%sx" "$count"
|
[ "$count" = "1" ] || printf "%sx" "$count"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -40,3 +40,5 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
color b c W; printf "%s" "$freq"; color -; color c W; printf "%s" "GHz"; color --
|
color b c W; printf "%s" "$freq"; color -; color c W; printf "%s" "GHz"; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -52,3 +52,5 @@ for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/temp*_input /proc/acpi/ibm/ther
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -54,3 +54,5 @@ for i in "$DATA/bin/"[0-9]*_*; do
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "$OUTPUT" | sed ':a;N;$!ba;s/\n//g'
|
echo "$OUTPUT" | sed ':a;N;$!ba;s/\n//g'
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -32,3 +32,5 @@ case "$1" in
|
||||||
printf "\005Y-\005m-\005d "
|
printf "\005Y-\005m-\005d "
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -51,3 +51,5 @@ get_size_pct "${MP}"
|
||||||
|
|
||||||
color b M W; echo -n "$_SIZE"; color -; color M W; echo -n "${_UNIT}B,"; color -;
|
color b M W; echo -n "$_SIZE"; color -; color M W; echo -n "${_UNIT}B,"; color -;
|
||||||
color b M W; echo -n "$_PCT"; color -; color M W; echo -n "%" ; color --;
|
color b M W; echo -n "$_PCT"; color -; color M W; echo -n "%" ; color --;
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -98,3 +98,5 @@ for i in "read" "write"; do
|
||||||
[ "$rate" != "0" ] || continue
|
[ "$rate" != "0" ] || continue
|
||||||
color b M W; printf "%s%s" "$symbol" "$rate"; color -; color M W; printf "%s" "$unit"; color --
|
color b M W; printf "%s%s" "$symbol" "$rate"; color -; color M W; printf "%s" "$unit"; color --
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -106,3 +106,5 @@ if [ "$DETAIL" = "1" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
color K G; printf "A\$"; color -; color b K G; printf "%s" "$total_cost"; color --
|
color K G; printf "A\$"; color -; color b K G; printf "%s" "$total_cost"; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -60,3 +60,5 @@ fan_speed_info() {
|
||||||
|
|
||||||
fan_speed_info "$@"
|
fan_speed_info "$@"
|
||||||
|
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -34,3 +34,5 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
color bold2; printf "%s" "$h "; color --
|
color bold2; printf "%s" "$h "; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -63,3 +63,5 @@ case "$IPV6" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
color bold2; printf "%s" "$ipaddr"; color --
|
color bold2; printf "%s" "$ipaddr"; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -26,3 +26,5 @@ if [ "$1" = "--detail" ]; then
|
||||||
fi
|
fi
|
||||||
read one five fifteen other < /proc/loadavg
|
read one five fifteen other < /proc/loadavg
|
||||||
color Y k; printf "$one"; color --
|
color Y k; printf "$one"; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -122,3 +122,5 @@ fi
|
||||||
|
|
||||||
# No idea!
|
# No idea!
|
||||||
printf "|B|"
|
printf "|B|"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -30,3 +30,5 @@ fi
|
||||||
if [ -s "$mailfile" ]; then
|
if [ -s "$mailfile" ]; then
|
||||||
color b; printf "%s" "$ICON"; color --
|
color b; printf "%s" "$ICON"; color --
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -48,3 +48,5 @@ mem_available_info() {
|
||||||
}
|
}
|
||||||
|
|
||||||
mem_available_info "$@"
|
mem_available_info "$@"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -62,3 +62,5 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
color b g W; printf "%s" "$f"; color -; color g W; printf "%%"; color --
|
color b g W; printf "%s" "$f"; color -; color g W; printf "%%"; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -35,3 +35,5 @@ fi
|
||||||
|
|
||||||
text=$(gettext "Menu")
|
text=$(gettext "Menu")
|
||||||
color k w; printf "%s:<" "$text"; color -; color b k w; printf "%s" "$key"; color k w; printf ">"
|
color k w; printf "%s:<" "$text"; color -; color b k w; printf "%s" "$key"; color k w; printf ">"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -100,3 +100,5 @@ for i in up down; do
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -36,3 +36,5 @@ esac
|
||||||
CMD="tail --pid $PPID -n 0 -F $LOG"
|
CMD="tail --pid $PPID -n 0 -F $LOG"
|
||||||
pkill -f "$CMD" || true
|
pkill -f "$CMD" || true
|
||||||
$CMD | $BYOBU_PREFIX/lib/byobu/.notify_osd "$PPID"
|
$CMD | $BYOBU_PREFIX/lib/byobu/.notify_osd "$PPID"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -27,3 +27,5 @@ fi
|
||||||
|
|
||||||
count=$(ls -d /proc/[0-9]* 2>/dev/null| wc -l)
|
count=$(ls -d /proc/[0-9]* 2>/dev/null| wc -l)
|
||||||
color b y w; printf "%s" "$count"; color -; color y w; printf "&"; color --
|
color b y w; printf "%s" "$count"; color -; color y w; printf "&"; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -45,3 +45,5 @@ done < /proc/mdstat
|
||||||
if [ -n "$msg" ]; then
|
if [ -n "$msg" ]; then
|
||||||
color B w r; printf "%s" "$msg"; color --
|
color B w r; printf "%s" "$msg"; color --
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -97,3 +97,5 @@ if [ "$DETAIL" = "1" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
color K G; printf "R\$%s"; color -; color b K G; printf "%s" "$total_cost"; color --
|
color K G; printf "R\$%s"; color -; color b K G; printf "%s" "$total_cost"; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -41,3 +41,5 @@ case "$1" in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -76,3 +76,5 @@ release_info() {
|
||||||
}
|
}
|
||||||
|
|
||||||
release_info "$@"
|
release_info "$@"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -72,3 +72,5 @@ done
|
||||||
[ -n "$output" ] || exit 0
|
[ -n "$output" ] || exit 0
|
||||||
|
|
||||||
color w c; printf "%s" ${output#,}; color --
|
color w c; printf "%s" ${output#,}; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -62,3 +62,5 @@ swap_info() {
|
||||||
}
|
}
|
||||||
|
|
||||||
swap_info "$@"
|
swap_info "$@"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -29,3 +29,5 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -29,3 +29,5 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -27,3 +27,5 @@ count=$(ls $dir|wc -l)
|
||||||
[ "$count" -eq 0 ] && exit 0
|
[ "$count" -eq 0 ] && exit 0
|
||||||
|
|
||||||
echo -n "$ICON[$count] "
|
echo -n "$ICON[$count] "
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -107,3 +107,5 @@ mycache="$DIR/$PKG.updates-available"
|
||||||
# If we really need to do so (mycache doesn't exist, or the package database has changed),
|
# If we really need to do so (mycache doesn't exist, or the package database has changed),
|
||||||
# background an update now
|
# background an update now
|
||||||
update_needed "$mycache" && update_cache "$mycache"
|
update_needed "$mycache" && update_cache "$mycache"
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -42,3 +42,5 @@ else
|
||||||
fi
|
fi
|
||||||
printf "%s" "${str}"
|
printf "%s" "${str}"
|
||||||
color --
|
color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -35,3 +35,5 @@ count=`pgrep -f "sshd:.*@" | wc -l` || exit 0
|
||||||
if [ $count -gt 0 ]; then
|
if [ $count -gt 0 ]; then
|
||||||
color b w r; printf "%d" "$count"; color -; color w r; printf "#"; color --
|
color b w r; printf "%d" "$count"; color -; color w r; printf "#"; color --
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -25,3 +25,5 @@ if [ "$1" = "--detail" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
color bold2; printf "%s@" "$(whoami)"; color -
|
color bold2; printf "%s@" "$(whoami)"; color -
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -46,3 +46,5 @@ fi
|
||||||
[ "$quality" = "0" ] && exit 0
|
[ "$quality" = "0" ] && exit 0
|
||||||
|
|
||||||
printf "${ICON}"; color b C k; printf "%s" "$bitrate"; color -; color C k; printf "%s," "Mbps"; color -; color b C k; printf "%s" "$quality"; color -; color C k; printf "%%"; color --
|
printf "${ICON}"; color b C k; printf "%s" "$bitrate"; color -; color C k; printf "%s," "Mbps"; color -; color b C k; printf "%s" "$quality"; color -; color C k; printf "%%"; color --
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -158,3 +158,5 @@ info " ssh -C $HOSTUSER@$(hostname)"
|
||||||
info "to control the session"
|
info "to control the session"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
||||||
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue