From b1d847c13c04e918599152af0aa9bdb95a734ddd Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Thu, 27 Aug 2015 15:03:44 +0000 Subject: [PATCH] added a searchpkgs function --- runcoms/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runcoms/zshrc b/runcoms/zshrc index 6175a54..0a6e464 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -12,4 +12,11 @@ fi # Use local npm prefix export NPM_CONFIG_PREFIX=~/.npm_prefix +export EDITOR=vim +export VISUAL=vim export PATH=$PATH:$NPM_CONFIG_PREFIX/bin + + +searchpkg () { + nix-env -qaP '*' --description | grep $1 +}