Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
a870fee6
Unverified
Commit
a870fee6
authored
Sep 08, 2019
by
Marc Cornellà
Committed by
GitHub
Sep 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update syntax on the remaining functions
parent
b3d3ce8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
debian.plugin.zsh
plugins/debian/debian.plugin.zsh
+5
-6
No files found.
plugins/debian/debian.plugin.zsh
View file @
a870fee6
...
...
@@ -114,7 +114,7 @@ fi
# Registers a compdef for $1 that calls $apt_pref with the commands $2
# To do that it creates a new completion function called _apt_pref_$2
#
apt_pref_compdef
()
{
function
apt_pref_compdef
()
{
local
f fb
f
=
"_apt_pref_
${
2
}
"
...
...
@@ -151,7 +151,7 @@ alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
# Functions #################################################################
# create a simple script that can be used to 'duplicate' a system
apt-copy
()
{
function
apt-copy
()
{
print
'#!/bin/sh'
"
\n
"
>
apt-copy.sh
cmd
=
'$apt_pref install'
...
...
@@ -173,7 +173,7 @@ apt-copy() {
# apt-history rollback
# apt-history list
# Based On: https://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html
apt-history
()
{
function
apt-history
()
{
case
"
$1
"
in
install
)
zgrep
--no-filename
'install '
$(
ls
-rt
/var/log/dpkg
*)
...
...
@@ -202,7 +202,7 @@ apt-history () {
}
# Kernel-package building shortcut
kerndeb
()
{
function
kerndeb
()
{
# temporarily unset MAKEFLAGS ( '-j3' will fail )
MAKEFLAGS
=
$(
print -
$MAKEFLAGS
| perl
-pe
's/-j\s*[\d]+//g'
)
print
'$MAKEFLAGS set to '
"'
$MAKEFLAGS
'"
...
...
@@ -216,10 +216,9 @@ kerndeb () {
}
# List packages by size
function
apt-list-packages
{
function
apt-list-packages
()
{
dpkg-query
-W
--showformat
=
'${Installed-Size} ${Package} ${Status}\n'
|
\
grep
-v
deinstall |
\
sort
-n
|
\
awk
'{print $1" "$2}'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment