From 7cfb04164640d6d67b526c388a980aca1daeb29f Mon Sep 17 00:00:00 2001 From: Max Regan Date: Sun, 5 Jul 2020 14:01:43 -0700 Subject: [PATCH] bash: add `noerr` and `highlight` funcs --- .mgr_config/.bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.mgr_config/.bashrc b/.mgr_config/.bashrc index e5ff615..e8e4524 100644 --- a/.mgr_config/.bashrc +++ b/.mgr_config/.bashrc @@ -2,7 +2,12 @@ git-home() { git --git-dir="$HOME/.git_home/" --work-tree="$HOME" "$@" } +noerr() { + "$@" 2>/dev/null +} + alias gh='git-home' alias emacs='emacsclient -a="" -c' +alias highlight='grep -U999999 --color=always' export PATH=$PATH:$HOME/.mgr_config/bin