home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Otherware
/
Otherware_1_SB_Development.iso
/
amiga
/
utility
/
cli
/
sksh017.lzh
/
init
/
.skshinit
next >
Wrap
Text File
|
1991-04-14
|
2KB
|
59 lines
#*************************************************************************
# SKsh init file. ALL USER CHANGES SHOUD BE MADE TO .skshrc, NOT
# THIS FILE. SEE DOCUMENTATION FOR DETAILS AND EXPLAINATION, in
# Reference.doc under the SKSHINIT variable section.
#*************************************************************************
#*************************************************************************
# Set up variables
#*************************************************************************
PS1 = '$_ANSI_P3[$_ANSI_P2$CLINUM$_ANSI_P3|$_ANSI_P2$CMDNUM$_ANSI_P3|$PWD]: $_ANSI_P1'
PS2 = '$_ANSI_P3> $_ANSI_P1'
PNPC = 61
PNPC2 = 21
#*************************************************************************
# Set up sksh aliases
#*************************************************************************
if [ "$SIZE" = 'normal' ] # large version only...
then
alias makedir = 'mkdir'
alias delete = 'rm'
alias remove = 'rm'
alias '!' = 'history -e'
alias '!!' = 'history -e -1'
alias ll = 'ls -lbF'
alias dir = 'ls -bF'
# setup emacs like keymap
if [ "$INTERACTIVE" = 'TRUE' ]
then
emacs_mode >nil: || echo "ERROR: can't execute emacs_mode function"
fi
fi
#*************************************************************************
# Set up sksh functions
#*************************************************************************
function run { # run a program, searching the SKsh $PATH
local prog loc
prog = $1
shift
loc = $(which -s $prog)
if [ -z "$loc" ]
then
echo "$prog not found."
else
$(which -s run) $loc $*
fi
}