mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-10-14 15:49:09 +00:00
[#23] Rename plugins to modules
This commit is contained in:
31
modules/dpkg/init.zsh
Normal file
31
modules/dpkg/init.zsh
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# Defines dpkg aliases.
|
||||
#
|
||||
# Authors:
|
||||
# Daniel Bolton <dbb@9y.com>
|
||||
# Benjamin Boudreau <boudreau.benjamin@gmail.com>
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Aliases
|
||||
alias as="aptitude -F \"* %p -> %d \n(%v/%V)\" --no-gui --disable-columns search" # Search package.
|
||||
alias ad="sudo apt-get update" # Update packages lists.
|
||||
alias au="sudo apt-get update && sudo apt-get dselect-upgrade" # Upgrade packages.
|
||||
alias ai="sudo apt-get install" # Install package.
|
||||
alias ar="sudo apt-get remove --purge && sudo apt-get autoremove --purge" # Remove package.
|
||||
alias ap="apt-cache policy" # Apt policy.
|
||||
alias av="apt-cache show" # Show package info.
|
||||
alias acs="apt-cache search" # Search package.
|
||||
alias ac="sudo apt-get clean && sudo apt-get autoclean" # Clean apt cache.
|
||||
alias afs='apt-file search --regexp' # Find file's packake.
|
||||
|
||||
# Install all .deb files in the current directory.
|
||||
# WARNING: you will need to put the glob in single quotes if you use glob_subst.
|
||||
alias debi='su -c "dpkg -i ./*.deb"'
|
||||
|
||||
# Create a basic .deb package.
|
||||
alias debc='time dpkg-buildpackage -rfakeroot -us -uc'
|
||||
|
||||
# Remove ALL kernel images and headers EXCEPT the one in use.
|
||||
alias kclean='su -c '\''aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n`uname -r`))'\'' root'
|
||||
|
Reference in New Issue
Block a user