source: trunk/essentials/app-shells/bash/examples/startup-files/bashrc@ 3845

Last change on this file since 3845 was 3228, checked in by bird, 19 years ago

bash 3.1

File size: 1.6 KB
Line 
1if [ -z "$PS1" ]; then
2 return
3fi
4
5# bogus
6if [ -f /unix ] ; then
7 alias ls='/bin/ls -CF'
8else
9 alias ls='/bin/ls -F'
10fi
11alias ll='ls -l'
12alias dir='ls -ba'
13
14alias ss="ps -aux"
15alias dot='ls .[a-zA-Z0-9_]*'
16alias news="xterm -g 80x45 -e trn -e -S1 -N &"
17
18alias c="clear"
19alias m="more"
20alias j="jobs"
21
22# common misspellings
23alias mroe=more
24alias pdw=pwd
25
26hash -p /usr/bin/mail mail
27
28if [ -z "$HOST" ] ; then
29 export HOST=${HOSTNAME}
30fi
31
32HISTIGNORE="[ ]*:&:bg:fg"
33
34psgrep()
35{
36 ps -aux | grep $1 | grep -v grep
37}
38
39#
40# This is a little like `zap' from Kernighan and Pike
41#
42
43pskill()
44{
45 local pid
46
47 pid=$(ps -ax | grep $1 | grep -v grep | awk '{ print $1 }')
48 echo -n "killing $1 (process $pid)..."
49 kill -9 $pid
50 echo "slaughtered."