summarylogtreecommitdiffstats
path: root/system.pshrc
diff options
context:
space:
mode:
Diffstat (limited to 'system.pshrc')
-rwxr-xr-xsystem.pshrc22
1 files changed, 22 insertions, 0 deletions
diff --git a/system.pshrc b/system.pshrc
new file mode 100755
index 000000000000..fba28e9b86b0
--- /dev/null
+++ b/system.pshrc
@@ -0,0 +1,22 @@
+#
+# /etc/psh.pshrc
+#
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+[[ $DISPLAY ]] && shopt -s checkwinsize
+
+PS1='[\u@\h \W]\$ '
+
+case ${TERM} in
+ xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
+ PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
+
+ ;;
+ screen*)
+ PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
+ ;;
+esac
+
+[ -r /usr/share/psh-completion/psh_completion ] && . /usr/share/psh-completion/psh_completion