From 03e94092f838ee766c22649171edde75208f725d Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sun, 22 Nov 2020 09:30:11 -0600 Subject: [PATCH] Work on greeting --- apps/shell/fish/config.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/shell/fish/config.fish b/apps/shell/fish/config.fish index 110e8f9..7b11961 100755 --- a/apps/shell/fish/config.fish +++ b/apps/shell/fish/config.fish @@ -31,6 +31,9 @@ test -f ~/.fzf/shell/key-bindings.fish && source ~/.fzf/shell/key-bindings.fish function fish_greeting; set_color -b black brblack printf "%s@%s %s\n" $USER (hostname) (date) + printf "%6d processes running\n" (ps -aux | wc -l) + printf "%6sGB memory available\n" (free -g | grep '^Mem:' | tr -s ' ' | cut -d ' ' -f7) + printf "%6d PTYs open\n" (cat /proc/sys/kernel/pty/nr) end # we assume the user uses "$HOME" to just store their mess of dotfiles and other