From 820af097843bb9ba5fe2190879fef70e8813bfa0 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 11 Jan 2023 11:10:36 -0500 Subject: [PATCH 1/2] add lsgrep --- configs/zsh/macros.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/zsh/macros.sh b/configs/zsh/macros.sh index b172e61..3969e84 100644 --- a/configs/zsh/macros.sh +++ b/configs/zsh/macros.sh @@ -9,6 +9,7 @@ alias wg-easykeys="wg genkey | tee >(wg pubkey)" alias nvim-tmp="nvim $(mktemp)" alias flush-dns="sudo systemd-resolve --flush-caches" alias showsizes="du -h --max-depth=1" +alias lsgrep="ls | grep" # WHOIS macros alias whois-afrinic="whois -h whois.afrinic.net" From 717fae080806238c6a9a2c83bc0093418de1c776 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 11 Jan 2023 12:15:29 -0500 Subject: [PATCH 2/2] neo-aliases --- configs/zsh/macros.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configs/zsh/macros.sh b/configs/zsh/macros.sh index 3969e84..c4d0acf 100644 --- a/configs/zsh/macros.sh +++ b/configs/zsh/macros.sh @@ -32,6 +32,10 @@ alias whois-radb="whois -h whois.radb.net" alias whois-reach="whois -h rr.telstraglobal.net" alias whois-ripe="whois -h whois.ripe.net" +# Neo-aliases +if [ -x "$(command -v nvim)" ]; then alias vim="nvim"; fi +if [ -x "$(command -v neomutt)" ]; then alias mutt="neomutt"; fi + # Kill via pgrep nkill() { if [ $# != 1 ]; then