aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-20 14:28:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-20 14:31:00 +1200
commitf6c40a8e49105fea60c074c198b96a6a71553185 (patch)
tree3112fae9cefc27a715a5e3901097fd2852538a5b /sh
parentMove grep() and ls() to POSIX funcs section (diff)
downloaddotfiles-f6c40a8e49105fea60c074c198b96a6a71553185.tar.gz
dotfiles-f6c40a8e49105fea60c074c198b96a6a71553185.zip
Basic PS1 setup for shrc
Will be overridden completely by Bash or OpenBSD pdksh prompt() functions
Diffstat (limited to '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)")