Line | |
---|
1 | # Ash initialization.
|
---|
2 |
|
---|
3 | test -z "$EDITOR" && { # Don't repeat in subshells.
|
---|
4 |
|
---|
5 | umask 022
|
---|
6 |
|
---|
7 | # Favourite editor and pager, search path for binaries, etc.
|
---|
8 | export EDITOR=vi
|
---|
9 | export PAGER=more
|
---|
10 | export PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
|
---|
11 |
|
---|
12 | } # End of no-repeat.
|
---|
13 |
|
---|
14 | # Let cd display the current directory on the status line.
|
---|
15 | if [ "$-" : '.*i.*' -a -t 0 -a -f /usr/bin/tget ] && tget -flag hs
|
---|
16 | then
|
---|
17 | hostname=$(expr $(uname -n) : '\([^.]*\)')
|
---|
18 | eval "cd()
|
---|
19 | {
|
---|
20 | chdir \"\$@\" &&
|
---|
21 | echo -n '$(tget -str ts \
|
---|
22 | "$USER@$hostname:'\"\`pwd\`\"'" \
|
---|
23 | -str fs)'
|
---|
24 | }"
|
---|
25 | unset hostname
|
---|
26 | cd .
|
---|
27 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.