-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
49 lines (42 loc) · 845 Bytes
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
##==============================================================================
##
## Customize (mike)
##
##==============================================================================
function src
{
find . -name '*.h' -o -name '*.c' -o -name '*.cpp'
}
function hdr
{
find . -name '*.h'
}
# Save directory location: "sd label"
function sd
{
if [ "$1" == "" ]
then
name=`basename $PWD`
else
name=$1
fi
mkdir -p $HOME/.dirs
pwd > $HOME/.dirs/$name
}
# Jump to directory location: "jd label"
function jd
{
if [ "$1" == "" ]
then
cd $HOME
return
fi
name=$1
cd `cat $HOME/.dirs/$name`
pwd
}
export GIT_EDITOR=vim
export GIT_CRED=????????????????????????????????????????
alias nf='find . -name'
alias remake='make clean; make'
export PATH=~/bin:${PATH}