Browse Source

Work on greeting

master
Daniel Flanagan 1 month ago
parent
commit
03e94092f8
Signed by: lytedev GPG Key ID: 5B2020A0F9921EF4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      apps/shell/fish/config.fish

+ 3
- 0
apps/shell/fish/config.fish View File

@ -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


Loading…
Cancel
Save