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
a7c46d0e
Unverified
Commit
a7c46d0e
authored
Jan 03, 2022
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ubuntu): fix `defining function based on alias` error (#10560)
Fixes #10560
parent
8e973d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ubuntu.plugin.zsh
plugins/ubuntu/ubuntu.plugin.zsh
+3
-3
No files found.
plugins/ubuntu/ubuntu.plugin.zsh
View file @
a7c46d0e
...
...
@@ -53,7 +53,7 @@ alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
# Usage: aar ppa:xxxxxx/xxxxxx [packagename]
# If packagename is not given as 2nd argument the function will ask for it and guess the default by taking
# the part after the / from the ppa name which is sometimes the right name for the package you want to install
aar
()
{
function
aar
()
{
if
[
-n
"
$2
"
]
;
then
PACKAGE
=
$2
else
...
...
@@ -76,7 +76,7 @@ aar() {
# 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
*)
...
...
@@ -105,7 +105,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
'"
...
...
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