150476Speter# $FreeBSD$
227865Swosch#
327865Swosch# .shrc - bourne shell startup file 
427865Swosch#
527865Swosch# This file will be used if the shell is invoked for interactive use and
627865Swosch# the environment variable ENV is set to this file.
727865Swosch#
827865Swosch# see also sh(1), environ(7).
927865Swosch#
1027865Swosch
1127865Swosch
1227865Swosch# file permissions: rwxr-xr-x
1327865Swosch#
1427865Swosch# umask	022
1527865Swosch
16100569Sjmallett# Enable the builtin emacs(1) command line editor in sh(1),
17100569Sjmallett# e.g. C-a -> beginning-of-line.
18100569Sjmallettset -o emacs
1927865Swosch
20100569Sjmallett# Uncomment this and comment the above to enable the builtin vi(1) command
21100569Sjmallett# line editor in sh(1), e.g. ESC to go into visual mode.
22100569Sjmallett# set -o vi
2327865Swosch
24100569Sjmallett
2527865Swosch# some useful aliases
2627865Swoschalias h='fc -l'
2727865Swoschalias j=jobs
2827865Swoschalias m=$PAGER
2927865Swoschalias ll='ls -laFo'
3027865Swoschalias l='ls -l'
3127865Swoschalias g='egrep -i'
3227865Swosch 
3327865Swosch# # be paranoid
3427865Swosch# alias cp='cp -ip'
3527865Swosch# alias mv='mv -i'
3627865Swosch# alias rm='rm -i'
3727865Swosch
3827865Swosch
3927865Swosch# # set prompt: ``username@hostname$ '' 
4027865Swosch# PS1="`whoami`@`hostname | sed 's/\..*//'`"
4127865Swosch# case `id -u` in
4227865Swosch# 	0) PS1="${PS1}# ";;
4327865Swosch# 	*) PS1="${PS1}$ ";;
4427865Swosch# esac
4527865Swosch
4627865Swosch# search path for cd(1)
47222932Sjilles# CDPATH=:$HOME
48