mirror of
https://github.com/sorin-ionescu/prezto.git
synced 2025-01-23 13:42:16 +08:00
Compare commits
3 Commits
9ea648e57c
...
2ff8e28791
Author | SHA1 | Date | |
---|---|---|---|
|
2ff8e28791 | ||
|
a97e8de21b | ||
|
725e7720de |
@ -11,10 +11,13 @@
|
|||||||
pacman --query --explicit --info \
|
pacman --query --explicit --info \
|
||||||
| awk '
|
| awk '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
FS=":"
|
FS=" : "
|
||||||
}
|
}
|
||||||
/^Name/ {
|
/^Name/ {
|
||||||
print $2
|
printf "\033[0;01m" $2 "\033[0m"
|
||||||
|
}
|
||||||
|
/^Version/ {
|
||||||
|
print " \033[1;32m" $2 "\033[0m"
|
||||||
}
|
}
|
||||||
/^Description/ {
|
/^Description/ {
|
||||||
print $2
|
print $2
|
||||||
|
@ -60,7 +60,7 @@ alias pacs="${_pacman_frontend} --sync --search"
|
|||||||
alias pacS="${_pacman_frontend} --query --search"
|
alias pacS="${_pacman_frontend} --query --search"
|
||||||
|
|
||||||
# Lists orphan packages.
|
# Lists orphan packages.
|
||||||
alias pacman-list-orphans="${_pacman_sudo}${_pacman_frontend} --query --deps --unrequired"
|
alias pacman-list-orphans="${_pacman_frontend} --query --deps --unrequired"
|
||||||
|
|
||||||
# Removes orphan packages.
|
# Removes orphan packages.
|
||||||
alias pacman-remove-orphans="${_pacman_sudo}${_pacman_frontend} --remove --recursive \$(${_pacman_frontend} --quiet --query --deps --unrequired)"
|
alias pacman-remove-orphans="${_pacman_sudo}${_pacman_frontend} --remove --recursive \$(${_pacman_frontend} --quiet --query --deps --unrequired)"
|
||||||
|
Loading…
Reference in New Issue
Block a user