From 5f8e0696397913b6797f0c971cb18fc94973f8c8 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sat, 29 Oct 2022 11:44:21 -0400 Subject: drop egrep from zshrc --- dot_zshrc.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dot_zshrc.tmpl') diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 8319d68..beb6023 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -32,8 +32,8 @@ # BEGIN LOCAL -if ! export LANG=$(locale -a | egrep -i "en_CA.UTF-?8"); then - if ! export LANG=$(locale -a | egrep -i "C.UTF-?8"); then +if ! export LANG=$(locale -a | grep -E -i "en_CA.UTF-?8"); then + if ! export LANG=$(locale -a | grep -E -i "C.UTF-?8"); then export LANG=C fi fi @@ -649,7 +649,7 @@ NO_verbose \ # GPG / SSH AGENT if command -v keychain > /dev/null && test -d ~/.ssh/keys/{{ .chezmoi.hostname }}; then - ls ~/.ssh/keys/{{ .chezmoi.hostname }}/id_* | egrep -v '\.pub$' | xargs keychain + ls ~/.ssh/keys/{{ .chezmoi.hostname }}/id_* | grep -E -v '\.pub$' | xargs keychain [ -z "$HOSTNAME" ] && HOSTNAME=`uname -n` [ -f $HOME/.keychain/$HOSTNAME-sh ] && . $HOME/.keychain/$HOSTNAME-sh -- cgit v1.2.3