From 5ed051d071dc9756eebbba065c294ccd3ee1bcf3 Mon Sep 17 00:00:00 2001
From: Keenan Lang <klang@aps.anl.gov>
Date: Tue, 13 Dec 2016 16:51:29 -0600
Subject: [PATCH] Scripts now set the shell prompt

---
 iocBoot/iocxxx/common.iocsh   | 5 ++++-
 iocBoot/iocxxx/st.cmd.vxWorks | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/iocBoot/iocxxx/common.iocsh b/iocBoot/iocxxx/common.iocsh
index 76f82c3..91b25a0 100644
--- a/iocBoot/iocxxx/common.iocsh
+++ b/iocBoot/iocxxx/common.iocsh
@@ -1,3 +1,6 @@
+# Shell prompt
+epicsEnvSet("IOCSH_PS1", "$(IOC)> ")
+
 # prefix used for all PVs in this IOC
 epicsEnvSet("PREFIX", "xxx:")
 
@@ -16,7 +19,7 @@ epicsEnvSet("STREAM_PROTOCOL_PATH", ".")
 # Note for N doubles, need N*8 bytes+some overhead
 epicsEnvSet EPICS_CA_MAX_ARRAY_BYTES 64010
 
-### save_restore setup
+### save_restore setup, change SAVE_PATH if you are having autosave manage its own NFS mount
 iocshLoad("$(AUTOSAVE)/iocsh/autosave_settings.iocsh", "PREFIX=$(PREFIX), SAVE_PATH=$(TOP)/iocBoot/$(IOC)")
 iocshLoad("$(AUTOSAVE)/iocsh/autosaveBuild.iocsh",     "PREFIX=$(PREFIX)")
 iocshLoad("$(AUTOSAVE)/iocsh/save_restore.iocsh",      "PREFIX=$(PREFIX), POSITIONS_FILE=auto_positions, SETTINGS_FILE=auto_settings")
diff --git a/iocBoot/iocxxx/st.cmd.vxWorks b/iocBoot/iocxxx/st.cmd.vxWorks
index cf78ef4..acad500 100644
--- a/iocBoot/iocxxx/st.cmd.vxWorks
+++ b/iocBoot/iocxxx/st.cmd.vxWorks
@@ -38,7 +38,7 @@ recDynLinkQsize = 1024
 dbLoadDatabase("$(TOP)/dbd/iocxxxVX.dbd")
 iocxxxVX_registerRecordDeviceDriver(pdbbase)
 
-shellPromptSet "iocvxWorks> "
+shellPromptSet "$(IOC)> "
 iocLogDisable=0
 
 # If you want save_restore to manage its own NFS mount, specify the name and
-- 
GitLab