diff options
author | mapc <musikmichael@web.de> | 2012-05-28 23:17:38 +0200 |
---|---|---|
committer | mapc <musikmichael@web.de> | 2012-05-29 14:35:25 +0200 |
commit | 0673425331fe997224bab9f90579c40cd14934f1 (patch) | |
tree | 069be4fa5049f3e6844a91ee12e9b80dbb3c3ed8 /plugins/debian/debian.plugin.zsh | |
parent | 1876f1d5581e7b6907ead46a8371826db5eded49 (diff) | |
download | zsh-0673425331fe997224bab9f90579c40cd14934f1.tar.gz zsh-0673425331fe997224bab9f90579c40cd14934f1.tar.bz2 zsh-0673425331fe997224bab9f90579c40cd14934f1.zip |
Add command to directly install the output of acs
Diffstat (limited to 'plugins/debian/debian.plugin.zsh')
-rw-r--r-- | plugins/debian/debian.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh index 5b6e5cfd4..39d3ef36a 100644 --- a/plugins/debian/debian.plugin.zsh +++ b/plugins/debian/debian.plugin.zsh @@ -49,6 +49,9 @@ if [[ $use_sudo -eq 1 ]]; then alias afu='sudo apt-file update' alias ag='sudo $apt_pref upgrade' alias ai='sudo $apt_pref install' + # Install all packages given on the command line while using only the first word of each line: + # acs ... | ail + alias ail="sed -e 's/ */ /g' -e 's/ *//' | cut -s -d ' ' -f 1 | "' xargs sudo $apt_pref install' alias ap='sudo $apt_pref purge' alias ar='sudo $apt_pref remove' |