#!/bin/bash # Some debian specific aliases if [ -x /usr/bin/fakeroot ] && [ -x /usr/bin/dpkg-repack ]; then alias drepack='fakeroot -u dpkg-repack' fi if command -v aptitude &> /dev/null; then function aptitude-remove-dep() { local PACKAGES PACKAGES=$(apt-cache showsrc "$1" | grep Build-Depends | perl -p -e 's/(?:[\[(].+?[\])]|Build-Depends:|,|\|)//g') sudo aptitude markauto "$PACKAGES" } complete -F _aptitude -o default aptitude-remove-dep fi if command -v dpkg-buildpackage &>/dev/null; then alias debbbuild='dpkg-buildpackage -b -us -uc -tc' fi if command -v git &> /dev/null; then alias cdgit='cd $(git root)' fi if command -v cme &> /dev/null; then alias cme-deps='cme fix dpkg -from control -filter Depends' fi