diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-20 14:28:00 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-20 14:31:00 +1200 |
commit | f6c40a8e49105fea60c074c198b96a6a71553185 (patch) | |
tree | 3112fae9cefc27a715a5e3901097fd2852538a5b /sh/shrc.d/prompt.sh | |
parent | Move grep() and ls() to POSIX funcs section (diff) | |
download | dotfiles-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/shrc.d/prompt.sh')
-rw-r--r-- | sh/shrc.d/prompt.sh | 3 |
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)") |