ppcrcd/trunk/conf.dir/etc/bashrc

sparky cvs at pld-linux.org
Sun Jan 8 15:05:18 CET 2006


Author: sparky
Date: Sun Jan  8 15:05:14 2006
New Revision: 6773

Added:
   ppcrcd/trunk/conf.dir/etc/bashrc
Log:
- add bashrc (changed PS1)


Added: ppcrcd/trunk/conf.dir/etc/bashrc
==============================================================================
--- (empty file)
+++ ppcrcd/trunk/conf.dir/etc/bashrc	Sun Jan  8 15:05:14 2006
@@ -0,0 +1,32 @@
+# /etc/bashrc
+
+# System wide functions and aliases
+# Environment stuff goes in /etc/profile
+
+# Test for an interactive shell.  There is no need to set anything
+# past this point for scp and rcp, and it's important to refrain from
+# outputting anything in those cases.
+if [[ $- != *i* ]] ; then
+	# Shell is non-interactive.  Be done now!
+	return
+fi
+
+# If this is an xterm set the title to user at host:dir
+case $TERM in
+	gnome|nxterm|xterm*|rxvt*)
+		PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+		;;
+	*)
+		;;
+esac
+PS1='\[\033[1m\][\[\033[31m\]\u\[\033[0m\]@\[\033[1m\]\[\033[32m\]\h \[\033[34m\]\W\[\033[37m\]]$\[\033[0m\] '
+
+alias which="type -p"
+
+# SYSTEM WIDE ALIASES ETC.
+if [ "$(echo /etc/shrc.d/*.sh)" != "/etc/shrc.d/*.sh" ]; then
+	for i in /etc/shrc.d/*.sh; do
+		. $i
+	done
+	unset i
+fi


More information about the pld-cvs-commit mailing list