Good UNIX .profile PDF Print E-mail
Written by Administrator   
Saturday, 14 March 2009 00:43
Here is a good Unix .profile. This one is from my Solaris 9 UltraSPARC II Machine.
You want to edit all the paths to correspond to your system and you have the
choice of three different command prompts.
PS1="[ $LOGNAME@`hostname` ]$ " ; export PS1
#PS1='\u@\h:\w\$ ' ; export PS1
#PS1='\[\033[0;33m\]\h:\[\033[0m\][\[\033[0;32m\]\w\[\033[0m\]] \$ ' ; export PS1
QTDIR=/opt/sfw
J2SE_PREEMPTCLOSE=1
export J2SE_PREEMPTCLOSE
export QTDIR
PATH=${QTDIR}/bin:/usr/local/samba/sbin:/usr/local/samba/bin:\
/usr/local/samba/lib:/usr/local/share/terminfo:/opt/sfw/kde/bin:\
/usr/local/share:/usr/bin:/usr/sbin:/opt/sfw/bin:usr/openwin/bin:\
/usr/sfw/bin:/usr/ccs/bin
LD_LIBRARY_PATH=${QTDIR}/lib:/local/lib:/opt/SUNWmlib/lib:\
/opt/sfw/kde/lib:/opt/sfw/lib:/usr/openwin/lib:/usr/dt/lib:\
/usr/lib:/usr/include:/usr/lib/cpu:/usr/local/lib:/usr/lib:\
/usr/dt/lib:/usr/share/lib:/usr/ccs/lib:/etc/lib:/usr/sfw/lib:\
/usr/sadm/lib
INCLUDE_PATH=/usr/include
MANPATH=/usr/local/samba/man:/opt/sfw/man:/usr/man:/usr/local/man:\
/usr/dt/man:/usr/local/samba/man
CC=/opt/sfw/bin/gcc
EDIT=vi
export LD_LIBRARY_PATH MANPATH CC EDIT INCLUDE_PATH
EXINIT="set showmode showmatch nu aw ai tabstop=8"
MAILCHECK=600PAGER=pg
TTY=`basename \`tty\``
case $0
in
-ksh|ksh)
set -o ignoreeof
set -a
set -o vi
ENV=~/.kshrc
FCEDIT=/usr/bin/vi
HISTFILE=~/.${TTY}_his
EDITOR=/usr/bin/vi
VISUAL=/usr/bin/vi
. $ENV
set +a
stty erase '^h'
;;
*)
SHELL=$SHELL
;;
esac
TERM=vt100
export EXINIT MAIL MAILCHECK PAGER ENV CC\FCEDIT HISTFILE EDITOR VISUAL TERM
Comments
Search
Only registered users can write comments!

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

Last Updated on Friday, 13 November 2009 05:21
 

Founder MJ12Net

Founder MJ12Net.org

Brian Bills
Founder MJ12Net
System Admin

Stumble Us

Valid XHTML & CSS | Template Design ah-68 | Copyright © 2009 by Firma