aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 21:00:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 21:00:08 +1200
commitc8b245cb24a6f303d2952e00390830865b3026d0 (patch)
tree8fb6e204732ad9c224cd18e8a865e7198daf7d82 /sh
parentUnbold params in dub(1) man synopsis (diff)
downloaddotfiles-c8b245cb24a6f303d2952e00390830865b3026d0.tar.gz
dotfiles-c8b245cb24a6f303d2952e00390830865b3026d0.zip
Set POSIX PS1 in a less silly way
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc b/sh/shrc
index 9e201ef1..1ab7c406 100644
--- a/sh/shrc
+++ b/sh/shrc
@@ -7,7 +7,7 @@ esac
# Basic PS1 for POSIX shell; if we're using something more advanced, something
# in ~/.shrc.d should overrule this. Does every POSIX shell support these? dash
# does, at least.
-PS1=$(printf '%s@%s$ ' "$(whoami)" "$(hostname -s)")
+PS1=$(whoami)'@'$(hostname -s)'$ '
# Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells
# like bash will have their own functions