diff options
author | Daniel Holman <dholman@gymli.org> | 2018-04-12 14:30:09 -0500 |
---|---|---|
committer | Daniel Holman <dholman@gymli.org> | 2018-04-12 14:30:09 -0500 |
commit | 412b2c4f66b2e625cda34aa0ee2d37005a645f1b (patch) | |
tree | 1cc003c55a3e2797438c0d619b4cdcb7da3f837f | |
parent | 6170f5c88f2c23d37bc29fcabe3fd2d317c3d5c5 (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.
-rw-r--r-- | .zshrc | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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' \ |