Once in a while I'll post some information about some neat tips/tricks that help me while I'm developing. This time, its macros for MingW's bash shell!
I have some macros in my mingw shell: cpu, drv and snd, you basically just type...
cpu(+enter) will go to ~/fbalpha/trunk/src/cpu
cpu z80(+enter) will go to ~/fbalpha/trunk/src/cpu/z80
snd and drv function in a similar fashion
edit /etc/profile, or c:\mingw\msys\1.0\etc\profile from outside of mingw
add at the bottom:
*NOTE: my source directory is in ~/fbalpha/trunk/, debug installation is ~/fbadebugg - change these to whatever you want.
gofbalphadrvdir() {
cd ~/fbalpha/trunk/src/burn/drv/$1
}
gofbalphaburnerdir() {
cd ~/fbalpha/trunk/src/burner/$1
}
gofbalphadebugdir() {
cd ~/fbadebugg
}
gofbalphadebuglaunch() {
cd ~/fbadebugg
fbaxp
}
gofbalphadir() {
cd ~/fbalpha/trunk
}
gofbalphaobjdir() {
cd ~/fbalpha/trunk/obj/47/3ds/$1
}
gofbalphacpudir() {
cd ~/fbalpha/trunk/src/cpu/$1
}
gofbalphasnddir() {
cd ~/fbalpha/trunk/src/burn/snd/$1
}
alias f=gofbalphadir
alias fd=gofbalphadebugdir
alias drv=gofbalphadrvdir
alias burner=gofbalphaburnerdir
alias fb=gofbalphadebuglaunch
alias obj=gofbalphaobjdir
alias cpu=gofbalphacpudir
alias snd=gofbalphasnddir