config

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

commit 2948999f3fc8406fb3364a2c3a4bbf1882ca7063
parent 3f75be951cf40daaa4228dc06b916b2e25e2320e
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sat, 21 Nov 2020 21:36:31 -0800

Add host and user information to shell prompt

Prefix an indicator as to whether you are root (`#') or not (`$') and
an abbreviated hostname to the original prompt, the current working
directory (with `~' substituted for ^$HOME).

Diffstat:
Mmodules/ksh/.config/ksh.kshrc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/ksh/.config/ksh.kshrc b/modules/ksh/.config/ksh.kshrc @@ -6,11 +6,11 @@ ALIASES="$XDG_CONFIG_HOME/aliases" [ -f "$ALIASES/main" ] && . "$ALIASES/main" . ~/.profile -MAIL="/var/mail/$USER" HISTFILE="$HISTBASE/ksh/`date +%Y.%m`" HISTSIZE="820000" +MAIL="/var/mail/$USER" -PS1="\w " +export PS1="\\\$`hostname | cut -c -2` \w " export PS2="2> " export PS3="3> " export PS4="4> "