From 78c5fd75c8191d292ce5d8f1199ae839f0fd755e Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Wed, 14 Dec 2022 08:29:54 +0100 Subject: [PATCH] Remove PAGER and alias nix search --- dot_bashrc.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dot_bashrc.tmpl b/dot_bashrc.tmpl index 2037759..e689c00 100644 --- a/dot_bashrc.tmpl +++ b/dot_bashrc.tmpl @@ -125,12 +125,12 @@ if hash fd 2>/dev/null; then alias fdfind='fd' fi -if command -v most > /dev/null 2>&1; then - export PAGER="most" -fi - if hash nix-env 2>/dev/null; then alias nix-update='nix-channel --update && nix-env -u' + + nix-search() { + nix-env -qa --description ".*$1.*" + } fi alias cdd='cd {{ .deploydir }}'