From d072c0fbec58439ede849facf89fa11225dd85d9 Mon Sep 17 00:00:00 2001 From: Tiago Rinaldi Date: Mon, 6 Nov 2017 12:41:33 -0200 Subject: Change `agud` alias from `dist-upgrade` to `full-upgrade` (#6384) --- plugins/ubuntu/readme.md | 2 +- plugins/ubuntu/ubuntu.plugin.zsh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/ubuntu') diff --git a/plugins/ubuntu/readme.md b/plugins/ubuntu/readme.md index 5ad4bbcd2..99d62a6f7 100644 --- a/plugins/ubuntu/readme.md +++ b/plugins/ubuntu/readme.md @@ -16,6 +16,6 @@ afs = Apt-File Search --regexp - this has the regexp switch on without being rep Then there are the 2 other 4 letter aliases for combined commands, that are straight forward and easy to remember. aguu = sudo Apt-Get Update && sudo apt-get Upgrade - better then adg or not? -agud = sudo Apt-Get Update && sudo apt-get Dist-upgrade +agud = sudo Apt-Get Update && sudo apt-get full-upgrade For a full list aliases and the functions just watch the plugins code https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/ubuntu/ubuntu.plugin.zsh, look at the comments if you want to switch from the debian plugin. Ubuntu, Mint and & co users will like the new aar function to install packages from ppas with a single command. diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh index 60ff0457f..eab2da409 100644 --- a/plugins/ubuntu/ubuntu.plugin.zsh +++ b/plugins/ubuntu/ubuntu.plugin.zsh @@ -2,6 +2,7 @@ # https://github.com/AlexBio # https://github.com/dbb # https://github.com/Mappleconfusers +# https://github.com/trinaldi # Nicolas Jonas nextgenthemes.com # https://github.com/loctauxphilippe # @@ -36,7 +37,7 @@ alias agi='sudo apt-get install' # ai alias agp='sudo apt-get purge' # ap alias agr='sudo apt-get remove' # ar alias agu='sudo apt-get update' # ad -alias agud='sudo apt-get update && sudo apt-get dist-upgrade' #adu +alias agud='sudo apt-get update && sudo apt-get full-upgrade' #adu alias agug='sudo apt-get upgrade' # ag alias aguu='sudo apt-get update && sudo apt-get upgrade' #adg alias agar='sudo apt-get autoremove' @@ -50,7 +51,7 @@ compdef _agi agi='sudo apt-get install' compdef _agp agp='sudo apt-get purge' compdef _agr agr='sudo apt-get remove' compdef _agu agu='sudo apt-get update' -compdef _agud agud='sudo apt-get update && sudo apt-get dist-upgrade' +compdef _agud agud='sudo apt-get update && sudo apt-get full-upgrade' compdef _agug agug='sudo apt-get upgrade' compdef _aguu aguu='sudo apt-get update && sudo apt-get upgrade' compdef _agar agar='sudo apt-get autoremove' -- cgit v1.2.3-70-g09d2 From ed85147e6e6cee9d030fd32f7643e5323a707cfc Mon Sep 17 00:00:00 2001 From: Mahmoud Hossam Date: Tue, 7 Nov 2017 18:06:42 +0200 Subject: Rename clashing ag alias (#5849) * Fix ubuntu ag alias clashing with the silver searcher * Add aliases for git apply and git merge --abort --- plugins/git/git.plugin.zsh | 2 ++ plugins/ubuntu/ubuntu.plugin.zsh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/ubuntu') diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 4536e191a..fa0c06500 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -44,6 +44,7 @@ alias ga='git add' alias gaa='git add --all' alias gapa='git add --patch' alias gau='git add --update' +alias gap='git apply' alias gb='git branch' alias gba='git branch -a' @@ -191,6 +192,7 @@ alias gmom='git merge origin/master' alias gmt='git mergetool --no-prompt' alias gmtvim='git mergetool --no-prompt --tool=vimdiff' alias gmum='git merge upstream/master' +alias gma='git merge --abort' alias gp='git push' alias gpd='git push --dry-run' diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh index eab2da409..ba7143687 100644 --- a/plugins/ubuntu/ubuntu.plugin.zsh +++ b/plugins/ubuntu/ubuntu.plugin.zsh @@ -28,7 +28,7 @@ compdef _afu afu='sudo apt-file update' alias ppap='sudo ppa-purge' compdef _ppap ppap='sudo ppa-purge' -alias ag='sudo apt-get' # age - but without sudo +alias apg='sudo apt-get' # age - but without sudo alias aga='sudo apt-get autoclean' # aac alias agb='sudo apt-get build-dep' # abd alias agc='sudo apt-get clean' # adc @@ -42,7 +42,7 @@ alias agug='sudo apt-get upgrade' # ag alias aguu='sudo apt-get update && sudo apt-get upgrade' #adg alias agar='sudo apt-get autoremove' -compdef _ag ag='sudo apt-get' +compdef _ag apg='sudo apt-get' compdef _aga aga='sudo apt-get autoclean' compdef _agb agb='sudo apt-get build-dep' compdef _agc agc='sudo apt-get clean' -- cgit v1.2.3-70-g09d2 From 7cea8475fbf8e1ba9e665e7740e35182c57bfb6f Mon Sep 17 00:00:00 2001 From: Juanra Núñez Date: Wed, 8 Nov 2017 17:03:11 -0500 Subject: Added aliases for listing packages (#6374) Added 'agli' to list all installed packages. Added 'aglu' to list available updates only. --- plugins/ubuntu/ubuntu.plugin.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/ubuntu') diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh index ba7143687..082481466 100644 --- a/plugins/ubuntu/ubuntu.plugin.zsh +++ b/plugins/ubuntu/ubuntu.plugin.zsh @@ -21,7 +21,16 @@ compdef _ags ags='apt-get source' alias acp='apt-cache policy' # app compdef _acp acp='apt-cache policy' +#List all installed packages +alias agli='apt list --installed' +compdef _agli agli='apt list --installed' + # superuser operations ###################################################### + +# List available updates only +alias aglu='sudo apt-get -u upgrade --assume-no' +compdef _aglu aglu='sudo apt-get -u upgrade --assume-no' + alias afu='sudo apt-file update' compdef _afu afu='sudo apt-file update' -- cgit v1.2.3-70-g09d2