Make fish greeting macOS-friendly
This commit is contained in:
parent
0e75632ebe
commit
b5da6adeb2
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ function fish_greeting;
|
||||||
set_color -b black brblack
|
set_color -b black brblack
|
||||||
printf "%s@%s %s\n" $USER (hostname) (date)
|
printf "%s@%s %s\n" $USER (hostname) (date)
|
||||||
printf "%6d processes running\n" (ps -aux | wc -l)
|
printf "%6d processes running\n" (ps -aux | wc -l)
|
||||||
printf "%6sGB memory available\n" (free -g | grep '^Mem:' | tr -s ' ' | cut -d ' ' -f7)
|
has_command free && 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)
|
test -f /proc/sys/kernel/pty/nr && printf "%6d PTYs open\n" (cat /proc/sys/kernel/pty/nr)
|
||||||
end
|
end
|
||||||
|
|
||||||
# we assume the user uses "$HOME" to just store their mess of dotfiles and other
|
# we assume the user uses "$HOME" to just store their mess of dotfiles and other
|
||||||
|
|
Reference in a new issue