From 30d95b2bc991dcf99816695f035d8abe6b8087c7 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Mon, 28 Nov 2011 18:08:17 -0500 Subject: [PATCH] Add colour to cower. How aur wrappers are managed at the moment is not ideal. --- plugins/archlinux/archlinux.plugin.zsh | 5 ++++- plugins/archlinux/aur-helpers/aur-helper-cower.zsh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh index 10a84866a..ffda84bf7 100644 --- a/plugins/archlinux/archlinux.plugin.zsh +++ b/plugins/archlinux/archlinux.plugin.zsh @@ -8,7 +8,7 @@ # Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips alias pacupg='sudo pacman -Syu' # Synchronize with repositories before upgrading packages that are out of date on the local system. alias pacin='sudo pacman -S' # Install specific package(s) from the repositories -alias pacins='sudo pacman -U' # Install specific package not from the repositories but from a file +alias pacins='sudo pacman -U' # Install specific package not from the repositories but from a file alias pacre='sudo pacman -R' # Remove the specified package(s), retaining its configuration(s) and required dependencies alias pacrem='sudo pacman -Rns' # Remove the specified package(s), its configuration(s) and unneeded dependencies alias pacrep='pacman -Si' # Display information about a given package in the repositories @@ -61,3 +61,6 @@ pacman() { *) $pacman_bin "$@" ;; esac } + +# TODO There needs to be a better way to support this +[[ -x /usr/bin/cower ]] && source $ZSH/plugins/archlinux/aur-helpers/aur-helper-cower.zsh diff --git a/plugins/archlinux/aur-helpers/aur-helper-cower.zsh b/plugins/archlinux/aur-helpers/aur-helper-cower.zsh index e69de29bb..229af7653 100644 --- a/plugins/archlinux/aur-helpers/aur-helper-cower.zsh +++ b/plugins/archlinux/aur-helpers/aur-helper-cower.zsh @@ -0,0 +1 @@ +alias cower='cower --color=auto'