dot.shrc revision 50476
11573Srgrimes# $FreeBSD: head/share/skel/dot.shrc 50476 1999-08-28 00:22:10Z peter $
21573Srgrimes#
31573Srgrimes# .shrc - bourne shell startup file 
41573Srgrimes#
51573Srgrimes# This file will be used if the shell is invoked for interactive use and
61573Srgrimes# the environment variable ENV is set to this file.
71573Srgrimes#
81573Srgrimes# see also sh(1), environ(7).
91573Srgrimes#
101573Srgrimes
111573Srgrimes
121573Srgrimes# file permissions: rwxr-xr-x
131573Srgrimes#
141573Srgrimes# umask	022
151573Srgrimes
161573Srgrimes# Uncomment next line to enable the builtin emacs(1) command line editor
171573Srgrimes# in sh(1), e.g. C-a -> beginning-of-line.
181573Srgrimes# set -o emacs
191573Srgrimes
201573Srgrimes
211573Srgrimes# some useful aliases
221573Srgrimesalias h='fc -l'
231573Srgrimesalias j=jobs
241573Srgrimesalias m=$PAGER
251573Srgrimesalias ll='ls -laFo'
261573Srgrimesalias l='ls -l'
271573Srgrimesalias g='egrep -i'
281573Srgrimes 
291573Srgrimes# # be paranoid
301573Srgrimes# alias cp='cp -ip'
311573Srgrimes# alias mv='mv -i'
321573Srgrimes# alias rm='rm -i'
3350476Speter
341573Srgrimes
351573Srgrimes# # set prompt: ``username@hostname$ '' 
361573Srgrimes# PS1="`whoami`@`hostname | sed 's/\..*//'`"
371573Srgrimes# case `id -u` in
381573Srgrimes# 	0) PS1="${PS1}# ";;
391573Srgrimes# 	*) PS1="${PS1}$ ";;
401573Srgrimes# esac
411573Srgrimes
4259460Sphantom# search path for cd(1)
4359460Sphantom# CDPATH=.:$HOME
441573Srgrimes