aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/shrc.d/prompt.sh')
-rw-r--r--sh/shrc.d/prompt.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/shrc.d/prompt.sh b/sh/shrc.d/prompt.sh
new file mode 100644
index 00000000..ef3009ae
--- /dev/null
+++ b/sh/shrc.d/prompt.sh
@@ -0,0 +1,3 @@
+# Basic PS1 for POSIX shell
+# Does every POSIX shell support these? dash does, at least.
+PS1=$(printf '%s@%s$ ' "$(id -nu)" "$(hostname -s)")