mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-26 00:09:10 +01:00
fix(ubuntu): fix defining function based on alias
error (#10560)
Fixes #10560
This commit is contained in:
parent
8e973d42bd
commit
a7c46d0ebd
@ -53,7 +53,7 @@ alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
|
|||||||
# Usage: aar ppa:xxxxxx/xxxxxx [packagename]
|
# 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
|
# 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
|
# 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
|
if [ -n "$2" ]; then
|
||||||
PACKAGE=$2
|
PACKAGE=$2
|
||||||
else
|
else
|
||||||
@ -76,7 +76,7 @@ aar() {
|
|||||||
# apt-history rollback
|
# apt-history rollback
|
||||||
# apt-history list
|
# apt-history list
|
||||||
# Based On: https://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html
|
# Based On: https://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html
|
||||||
apt-history () {
|
function apt-history() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
install)
|
install)
|
||||||
zgrep --no-filename 'install ' $(ls -rt /var/log/dpkg*)
|
zgrep --no-filename 'install ' $(ls -rt /var/log/dpkg*)
|
||||||
@ -105,7 +105,7 @@ apt-history () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Kernel-package building shortcut
|
# Kernel-package building shortcut
|
||||||
kerndeb () {
|
function kerndeb() {
|
||||||
# temporarily unset MAKEFLAGS ( '-j3' will fail )
|
# temporarily unset MAKEFLAGS ( '-j3' will fail )
|
||||||
MAKEFLAGS=$( print - $MAKEFLAGS | perl -pe 's/-j\s*[\d]+//g' )
|
MAKEFLAGS=$( print - $MAKEFLAGS | perl -pe 's/-j\s*[\d]+//g' )
|
||||||
print '$MAKEFLAGS set to '"'$MAKEFLAGS'"
|
print '$MAKEFLAGS set to '"'$MAKEFLAGS'"
|
||||||
|
Loading…
Reference in New Issue
Block a user