diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-27 10:30:19 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-27 10:30:37 -0500 |
| commit | 5962fcf05a2af92d5fc2e0990836a3af0e7fbdd3 (patch) | |
| tree | 5cf1b4bb0a19acc889f7472ff5a8e7f6ad8b9120 /tmux/tmux_helper.sh | |
| parent | 01349d12add3f9568c226acfdca0ec7dd368c061 (diff) | |
| download | dotfiles-5962fcf05a2af92d5fc2e0990836a3af0e7fbdd3.tar.gz dotfiles-5962fcf05a2af92d5fc2e0990836a3af0e7fbdd3.tar.xz | |
Fix minor bugs. Sort Fedora packages. Add btop
Diffstat (limited to 'tmux/tmux_helper.sh')
| -rw-r--r-- | tmux/tmux_helper.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tmux/tmux_helper.sh b/tmux/tmux_helper.sh deleted file mode 100644 index 7ce68bd..0000000 --- a/tmux/tmux_helper.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - - -# Little helper script to clean up the nasty embeded commands in my tmux configuration -# Functions ripped out of `mkshrc`, worth checking out - -_sys_memory() { - if [ `uname` = "Linux" ] ; then - vmstat | tail -n1 | awk '{print $4/1024}' | sed -e's/\..*$//g' - elif [ `uname` = "FreeBSD" ] ; then - vmstat | tail -n1 | awk '{print $5/1024}' | sed -e's/\..*$//g' - elif [ `uname` = "OpenBSD" ] ; then - vmstat | sed -n '$p' | awk '{print $4}' | sed 's/M$//' - fi -} - -_sys_load() { - # Works on BSD too, neat. - uptime | sed -re's/^.*load averages?: ([0-9]+\.[0-9]+).*$/\1/g' -} - -_sys_uptime() { - # Took awhile to figure out, but this works on BSD as well - uptime | sed -re's/^.*up[ ]+//g' -e's/^([^,]*),.*/\1/g' -e's/^([^ ]+)[ ]*(.).*/\1\2/g' -} - - -_sys_$1 |
