mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Moved hub into the git plugin.
This commit is contained in:
parent
62fc8d802e
commit
60f39d8d91
55 changed files with 531 additions and 528 deletions
9
plugins/dpkg/functions/apt-copy
Normal file
9
plugins/dpkg/functions/apt-copy
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Create a simple script that can be used to 'duplicate' a system.
|
||||
print '#!/bin/sh'"\n" > apt-copy.sh
|
||||
|
||||
list=$(perl -m'AptPkg::Cache' -e '$c=AptPkg::Cache->new; for (keys %$c){ push @a, $_ if $c->{$_}->{'CurrentState'} eq 'Installed';} print "$_ " for sort @a;')
|
||||
|
||||
print 'aptitude install '"$list\n" >> apt-copy.sh
|
||||
|
||||
chmod +x apt-copy.sh
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue