aboutsummaryrefslogtreecommitdiff
path: root/pdksh/kshrc.d/prompt.ksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-09 22:50:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-09 22:50:43 +1200
commit5fb559c9eaecd8e5f474f5e3306e73a769a33643 (patch)
treeab4042c9430df48ebe80a9122afe76e7b7aa827c /pdksh/kshrc.d/prompt.ksh
parentTolerate missing tic(1) at least for now (diff)
downloaddotfiles-5fb559c9eaecd8e5f474f5e3306e73a769a33643.tar.gz
dotfiles-5fb559c9eaecd8e5f474f5e3306e73a769a33643.zip
Limit prompt setup to OpenBSD pdksh
FreeBSD's one doesn't seem to support \u \w etc at all
Diffstat (limited to 'pdksh/kshrc.d/prompt.ksh')
-rw-r--r--pdksh/kshrc.d/prompt.ksh3
1 files changed, 3 insertions, 0 deletions
diff --git a/pdksh/kshrc.d/prompt.ksh b/pdksh/kshrc.d/prompt.ksh
index 561242ad..d261b90d 100644
--- a/pdksh/kshrc.d/prompt.ksh
+++ b/pdksh/kshrc.d/prompt.ksh
@@ -1,3 +1,6 @@
+# All of this is only known to work on OpenBSD's fork of pdksh
+[[ $(uname -s) == OpenBSD ]] || return
+
# Frontend to controlling prompt
prompt() {