added a searchpkgs function

This commit is contained in:
Enrico Fasoli 2015-08-27 15:03:44 +00:00
parent 8b51cf2ed8
commit b1d847c13c

View File

@ -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
}