config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit db40eb08372e6244482e1a5568303c5bb16686fc
parent cca78630fcf703c2e83bc8daa9a260c8141968d3
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sun, 22 Nov 2020 15:41:53 -0800

Give more host information in shell prompt

While the domain name is now left off, up to five characters of the
hostname are shown instead of two.

Diffstat:
Mmodules/ksh/.config/ksh.kshrc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/ksh/.config/ksh.kshrc b/modules/ksh/.config/ksh.kshrc @@ -16,7 +16,7 @@ HISTFILE="$HISTBASE/ksh/`date +%Y.%m`" HISTSIZE="820000" MAIL="/var/mail/$USER" -export PS1="\\\$`hostname | cut -c -2` \w " +export PS1="\\\$`hostname -s | cut -c -5` \w " export PS2="2> " export PS3="3> " export PS4="4> "