diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/alias | 2 | ||||
-rw-r--r-- | etc/aliases/debian | 47 |
2 files changed, 49 insertions, 0 deletions
@@ -5,3 +5,5 @@ source $ZDIR/aliases/font source $ZDIR/aliases/default source $ZDIR/aliases/global source $ZDIR/aliases/short + +[[ $distro == debian ]] && source $ZDIR/aliases/debian diff --git a/etc/aliases/debian b/etc/aliases/debian new file mode 100644 index 0000000..4e43639 --- /dev/null +++ b/etc/aliases/debian @@ -0,0 +1,47 @@ +## vim:ft=zsh +## Debian package system (aptitude/apt-get, apt-cache, dpkg) + +# Search the packages list +alias acse='apt-cache search' +alias afse='apt-file search' +alias apse='aptitude search' + +# Show package information +alias acsh='apt-cache show' +alias afsh='apt-file show' +alias apsh='aptitude show' +alias dps='dpkg --status' + +# Update packages list +salias agu='apt-get update' +salias apu='aptitude update' + +# Update packages +salias ags='apt-get upgrade' +salias agf='apt-get dist-upgrade' +salias aps='aptitude safe-upgrade' +salias apf='aptitude full-upgrade' + +# Install packages +salias agi='apt-get install' +salias api='aptitude install' +salias dpi='dpkg --install' + +# Clean packages cache +salias agc='apt-get clean' +salias apc='aptitude clean' + +# Remove/Purge packages +salias agar='apt-get autoremove' +salias agp='apt-get purge' +salias agr='apt-get remove' +salias dpp='dpkg --purge' +salias dpr='dpkg --remove' + +# Get package source +alias agsrc='apt-get source' + +# Configure packages +salias dprc='dpkg-reconfigure' + +alias acp='apt-cache policy' |