# HG changeset patch # User Sevan Janiyan # Date 1680294790 -3600 # Fri Mar 31 21:33:10 2023 +0100 # Node ID 58a56783f549bc0df70a9988a5a0151015018922 # Parent dd8cd9367e4bf2d4fe70331022681175af90fb4d mkshrc:Add todo: switch prompt to tilde when in homedir automatically. diff --git a/mkshrc b/mkshrc new file mode 100644 --- /dev/null +++ b/mkshrc @@ -0,0 +1,3 @@ +export HISTFILE=~/.mksh-history +PS1="$(echo [\\x1b[1m${HOSTNAME:=$(hostname)}\\x1b[0m]) \$PWD$( + if (( USER_ID )); then print \$; else print \#; fi) "