forked from nicowilliams/env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kshrc
executable file
·59 lines (48 loc) · 1.34 KB
/
.kshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#stty erase
set -o vi
set -o trackall
HN=$(uname -n)
export PS1=": $(/usr/bin/whoami)@${HN%%.*}[!]; "
: ""
export PAGER=less
export PRINTER=uaus08p02dbl
[[ -f $HOME/.kshaliases ]] && . $HOME/.kshaliases
[[ -f $HOME/.kshcd ]] && . $HOME/.kshcd
export SHELL=/bin/ksh
export PS1='$(vcs_ps1)'
for i in 1 2 3 4 5 6 7 8 9 -; do alias fg${i}="fg %$i"; done
umask 022
if [[ ! -f "${TERMINFO:-/usr/share/lib/terminfo}/${TERM%${TERM##?}}/$TERM" ]]
then
if [[ -f "/opt/sfw/share/terminfo/${TERM%${TERM##?}}/$TERM" ]]
then
export TERMINFO=/opt/sfw/share/terminfo
fi
fi
removeFromXPATH PATH .
#removeFromXPATH PATH /usr/gnu/bin
maybeAdd2XPATH PATH /usr/sbin
maybeAdd2XPATH PATH /sbin
#maybeAdd2XPATH PATH /usr/ccs/bin left
#maybeAdd2XPATH PATH /usr/sfw/bin
#maybeAdd2XPATH PATH /opt/sfw/bin
#maybeAdd2XPATH PATH $HOME/sw/bin
#maybeAdd2XPATH PATH $HOME/bin
#maybeAdd2XPATH PATH /opt/csw/bin right
if whence vim > /dev/null 2>&1
then
if [[ "X$EDITOR" != X*vim* ]]
then
export EDITOR=vim
alias vi=vim
fi
fi
export CSCOPE_EDITOR=svim
[[ "$TERM" = xterm ]] && TERM=xterm-color
unset PROFILE SS_PROFILE
if [[ -n "$CODEMGR_WS" ]]
then
export PS1="$(/usr/gnu/bin/whoami)@${HN%%.*}:ws:${CODEMGR_WS##*/}[!]> "
fi
[[ -z "$ENV" ]] && export ENV=/export/home/nico/.kshrc.user
[[ -z "$HISTFILE" || ! -w "$HISTFILE" ]] && export HISTFILE=/tmp/.ksh_hist.$$