1# $FreeBSD: src/share/skel/dot.shrc,v 1.3 2002/07/23 12:28:16 jmallett Exp $ 2# $DragonFly: src/share/skel/dot.shrc,v 1.3 2005/09/25 06:04:52 swildner Exp $ 3# 4# .shrc - bourne shell startup file 5# 6# This file will be used if the shell is invoked for interactive use and 7# the environment variable ENV is set to this file. 8# 9# see also sh(1), environ(7). 10# 11 12 13# file permissions: rwxr-xr-x 14# 15# umask 022 16 17# Enable the builtin emacs(1) command line editor in sh(1), 18# e.g. C-a -> beginning-of-line. 19set -o emacs 20 21# Uncomment this and comment the above to enable the builtin vi(1) command 22# line editor in sh(1), e.g. ESC to go into visual mode. 23# set -o vi 24 25 26# some useful aliases 27alias h='fc -l' 28alias j=jobs 29alias m="$PAGER" 30alias ll='ls -laFo' 31alias l='ls -l' 32alias g='egrep -i' 33 34# # be paranoid 35# alias cp='cp -ip' 36# alias mv='mv -i' 37# alias rm='rm -i' 38 39 40# # set prompt: ``username@hostname$ '' 41# PS1="`whoami`@`hostname | sed 's/\..*//'`" 42# case `id -u` in 43# 0) PS1="${PS1}# ";; 44# *) PS1="${PS1}$ ";; 45# esac 46 47# search path for cd(1) 48# CDPATH=.:$HOME 49