| 1 |
# $FreeBSD: src/share/skel/dot.shrc,v 1.3 2002/07/23 12:28:16 jmallett Exp $ |
|---|
| 2 |
# |
|---|
| 3 |
# .shrc - bourne shell startup file |
|---|
| 4 |
# |
|---|
| 5 |
# This file will be used if the shell is invoked for interactive use and |
|---|
| 6 |
# the environment variable ENV is set to this file. |
|---|
| 7 |
# |
|---|
| 8 |
# see also sh(1), environ(7). |
|---|
| 9 |
# |
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
# file permissions: rwxr-xr-x |
|---|
| 13 |
# |
|---|
| 14 |
# umask 022 |
|---|
| 15 |
|
|---|
| 16 |
set -o vi |
|---|
| 17 |
|
|---|
| 18 |
alias g='egrep -i' |
|---|
| 19 |
alias h='fc -l' |
|---|
| 20 |
alias j=jobs |
|---|
| 21 |
alias l='ls -l' |
|---|
| 22 |
alias ll='ls -laFo' |
|---|
| 23 |
alias ls='ls -FG' |
|---|
| 24 |
alias ssh='ssh -l kcowgill ' |
|---|
| 25 |
alias vi='/usr/local/bin/vim' |
|---|
| 26 |
alias view='/usr/local/bin/vim -R' |
|---|
| 27 |
alias vim='/usr/local/bin/vim' |
|---|
| 28 |
|
|---|
| 29 |
test -r /sw/bin/init.sh && . /sw/bin/init.sh |
|---|
| 30 |
|
|---|
| 31 |
export EDITOR=/usr/local/bin/vim |
|---|
| 32 |
if [ -d /Users/kentcowgill ]; then |
|---|
| 33 |
export P4HOST=Kent-Cowgills-Computer.local |
|---|
| 34 |
export P4PASSWD=kcowgill |
|---|
| 35 |
export P4CLIENT=Projects.kcowgill |
|---|
| 36 |
export P4EDITOR=/usr/local/bin/vim |
|---|
| 37 |
export P4USER=kcowgill |
|---|
| 38 |
export P4PORT=source.monster.com:1844 |
|---|
| 39 |
export PATH=/sw/bin:/sw/sbin:/usr/local/bin:$PATH:/Users/kentcowgill/scripts:/System/Library/Frameworks/Python.framework/Versions/Current/bin |
|---|
| 40 |
export DYLD_LIBRARY_PATH="/usr/lib" |
|---|
| 41 |
export TERM=xterm-color |
|---|
| 42 |
# custom location for mac. |
|---|
| 43 |
alias svn='/usr/local/subversion/bin/svn' |
|---|
| 44 |
else |
|---|
| 45 |
export TERM=xterm |
|---|
| 46 |
fi |
|---|
| 47 |
export MANPAGER="col -b | /usr/local/bin/vim -R -c 'set ft=man nomod nolist' -" |
|---|
| 48 |
export PERLDOC_PAGER="less" |
|---|
| 49 |
export BLOCKSIZE=K |
|---|
| 50 |
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin |
|---|
| 51 |
|
|---|
| 52 |
function vpd { |
|---|
| 53 |
vi `perldoc -l $1` |
|---|
| 54 |
} |
|---|
| 55 |
|
|---|
| 56 |
function vtd { |
|---|
| 57 |
vim . -c :VSTreeExplore |
|---|
| 58 |
} |
|---|
| 59 |
|
|---|
| 60 |
function svd { |
|---|
| 61 |
svn diff | vim -R - |
|---|
| 62 |
} |
|---|
| 63 |
|
|---|
| 64 |
[ -x /usr/games/fortune ] && /usr/games/fortune |
|---|
| 65 |
[ -x /usr/bin/calendar ] && \ |
|---|
| 66 |
[ -r /usr/share/calendar/calendar.kent ] && \ |
|---|
| 67 |
calendar -A -1 -f /usr/share/calendar/calendar.kent |
|---|
| 68 |
|
|---|
| 69 |
# export PS1=`hostname -s`"("'${PWD#$HOME}'")$ " |
|---|
| 70 |
export PS1="[\h \w]\$ " |
|---|
| 71 |
|
|---|
| 72 |
/usr/bin/perl ~/bin/updir.pl |
|---|