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
3320658f
Commit
3320658f
authored
Oct 08, 2018
by
KeLiu
Committed by
Marc Cornellà
Oct 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archlinux: add aliases for yay (#6867)
parent
27e77c33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
0 deletions
+53
-0
README.md
plugins/archlinux/README.md
+20
-0
archlinux.plugin.zsh
plugins/archlinux/archlinux.plugin.zsh
+33
-0
No files found.
plugins/archlinux/README.md
View file @
3320658f
...
@@ -2,6 +2,26 @@
...
@@ -2,6 +2,26 @@
## Features
## Features
#### YAY
| Alias | Command | Description |
|---------|------------------------------------|---------------------------------------------------------------------|
| yaconf | yay -Pg | Print current configuration |
| yain | yay -S | Install packages from the repositories |
| yains | yay -U | Install a package from a local file |
| yainsd | yay -S --asdeps | Install packages as dependencies of another package |
| yaloc | yay -Qi | Display information about a package in the local database |
| yalocs | yay -Qs | Search for packages in the local database |
| yalst | yay -Qe | List installed packages including from AUR (tagged as "local") |
| yamir | yay -Syy | Force refresh of all package lists after updating mirrorlist |
| yaorph | yay -Qtd | Remove orphans using yaourt |
| yare | yay -R | Remove packages, keeping its settings and dependencies |
| yarem | yay -Rns | Remove packages, including its settings and unneeded dependencies |
| yarep | yay -Si | Display information about a package in the repositories |
| yareps | yay -Ss | Search for packages in the repositories |
| yaupg | yay -Syu | Sync with repositories before upgrading packages |
| yasu | yay -Syu --no-confirm | Same as
`yaupg`
, but without confirmation |
#### TRIZEN
#### TRIZEN
| Alias | Command | Description |
| Alias | Command | Description |
...
...
plugins/archlinux/archlinux.plugin.zsh
View file @
3320658f
...
@@ -56,6 +56,35 @@ if (( $+commands[yaourt] )); then
...
@@ -56,6 +56,35 @@ if (( $+commands[yaourt] )); then
fi
fi
fi
fi
if
((
$+
commands[yay]
))
;
then
alias
yaconf
=
'yay -Pg'
alias
yaupg
=
'yay -Syu'
alias
yasu
=
'yay -Syu --noconfirm'
alias
yain
=
'yay -S'
alias
yains
=
'yay -U'
alias
yare
=
'yay -R'
alias
yarem
=
'yay -Rns'
alias
yarep
=
'yay -Si'
alias
yareps
=
'yay -Ss'
alias
yaloc
=
'yay -Qi'
alias
yalocs
=
'yay -Qs'
alias
yalst
=
'yay -Qe'
alias
yaorph
=
'yay -Qtd'
alias
yainsd
=
'yay -S --asdeps'
alias
yamir
=
'yay -Syy'
if
((
$+
commands[abs]
&&
$+
commands[aur]
))
;
then
alias
yaupd
=
'yay -Sy && sudo abs && sudo aur'
elif
((
$+
commands[abs]
))
;
then
alias
yaupd
=
'yay -Sy && sudo abs'
elif
((
$+
commands[aur]
))
;
then
alias
yaupd
=
'yay -Sy && sudo aur'
else
alias
yaupd
=
'yay -Sy'
fi
fi
if
((
$+
commands[pacaur]
))
;
then
if
((
$+
commands[pacaur]
))
;
then
alias
paupg
=
'pacaur -Syu'
alias
paupg
=
'pacaur -Syu'
alias
pasu
=
'pacaur -Syu --noconfirm'
alias
pasu
=
'pacaur -Syu --noconfirm'
...
@@ -95,6 +124,10 @@ elif (( $+commands[yaourt] )); then
...
@@ -95,6 +124,10 @@ elif (( $+commands[yaourt] )); then
function
upgrade
()
{
function
upgrade
()
{
yaourt
-Syu
yaourt
-Syu
}
}
elif
((
$+
commands[yay]
))
;
then
function
upgrade
()
{
yay
-Syu
}
else
else
function
upgrade
()
{
function
upgrade
()
{
sudo
pacman
-Syu
sudo
pacman
-Syu
...
...
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