From 412b2c4f66b2e625cda34aa0ee2d37005a645f1b Mon Sep 17 00:00:00 2001 From: Daniel Holman Date: Thu, 12 Apr 2018 14:30:09 -0500 Subject: Wrote zsh function for pacsearch to also search AUR Wrote a function inside .zshrc that allows 'pacsearch' to also search the AUR using cower. --- .zshrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index be2cf22..20875ff 100644 --- a/.zshrc +++ b/.zshrc @@ -35,7 +35,7 @@ alias ls="ls --color=auto" alias pacin="sudo pacman -S" alias pacr="sudo pacman -Rns" alias pacup="sudo pacman -Syu;checkpkg" -alias pacsearch="pacaur -Ss" +alias cower="cower --color=auto" alias msfconsole="sudo msfconsole --quiet -x \"db_connect root@msf\"" alias irssi="torsocks irssi" @@ -48,6 +48,16 @@ GIT_PS1_SHOWUNTRACKEDFILES=1 PS1='${return_code}$(__git_ps1 "(%s)")$ ' # Make shell stuff behave nicely +pacsearch() { + if [[ -z $1 ]]; then + echo "No targets specified" + return + fi + + pacman -Ss $1 + cower -s $1 +} + man() { env \ LESS_TERMCAP_mb=$'\e[01;31m' \ -- cgit v1.2.3