summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorDaniel Holman <dholman@gymli.org>2018-04-12 14:30:09 -0500
committerDaniel Holman <dholman@gymli.org>2018-04-12 14:30:09 -0500
commit412b2c4f66b2e625cda34aa0ee2d37005a645f1b (patch)
tree1cc003c55a3e2797438c0d619b4cdcb7da3f837f /.zshrc
parent6170f5c88f2c23d37bc29fcabe3fd2d317c3d5c5 (diff)
Wrote zsh function for pacsearch to also search AUR
Wrote a function inside .zshrc that allows 'pacsearch' to also search the AUR using cower.
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc12
1 files changed, 11 insertions, 1 deletions
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' \