diff options
Diffstat (limited to '')
-rw-r--r-- | .zsh/zshfunctions | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.zsh/zshfunctions b/.zsh/zshfunctions index ad50ea1..823a65b 100644 --- a/.zsh/zshfunctions +++ b/.zsh/zshfunctions @@ -82,3 +82,22 @@ emerge() command emerge $@ fi } + +# keyword a specific package using flaggie +# relies on the $_kw variable set in .zshenv +kw() +{ + if [[ -z $1 ]]; then + echo "Error: Need the package" + return 1 + fi + + if whence flaggie NOE; then + # use 'flaggie' + flaggie $1 "+$_kw" + else + echo "Error: flaggie not installed" + echo "Do it yourself!" + return 1 + fi +} |