3 # Some debian specific aliases
4 if [ -x /usr/bin/fakeroot ] && [ -x /usr/bin/dpkg-repack ];
6 alias drepack='fakeroot -u dpkg-repack'
9 if command -v aptitude &> /dev/null;
11 function aptitude-remove-dep()
13 PACKAGES=$(apt-cache showsrc "$1" | grep Build-Depends | perl -p -e 's/(?:[\[(].+?[\])]|Build-Depends:|,|\|)//g')
14 sudo aptitude markauto "$PACKAGES"
16 complete -F _aptitude -o default aptitude-remove-dep
19 if command -v dpkg-buildpackage &>/dev/null;
21 alias debbbuild='dpkg-buildpackage -b -us -uc -tc'
24 if command -v git &> /dev/null;
26 alias cdgit='cd $(git root)'
29 if command -v cme &> /dev/null;
31 alias cme-deps='cme fix dpkg -from control -filter Depends'