From bf00f3f3e3a240594c08bc3599103fe7680acbcf Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 4 Jan 2022 10:28:15 +0800 Subject: Update z.sh config on macOS --- .env | 5 +---- .zshrc | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 1566f0e..9f49bea 100644 --- a/.env +++ b/.env @@ -8,10 +8,7 @@ export TERMINAL=$TERMINAL [ -f /usr/bin/qutebrowser ] && export BROWSER='qutebrowser' -[ -f /usr/local/etc/profile.d/z.sh ] \ - && source /usr/local/etc/profile.d/z.sh \ - && export _Z_CMD='j' -[ -f /usr/share/z/z.sh -o -f /usr/local/share/z/z.sh ] && export _Z_CMD='j' +[ -f /usr/share/z/z.sh -o -f /usr/local/etc/profile.d/z.sh ] && export _Z_CMD='j' export FZF_DEFAULT_COMMAND='find . -type f' if [ -f /usr/bin/fd ];then diff --git a/.zshrc b/.zshrc index 6348699..39c8c63 100644 --- a/.zshrc +++ b/.zshrc @@ -22,7 +22,7 @@ source $HOME/.path source $HOME/.env [[ -r /usr/share/z/z.sh ]] && source /usr/share/z/z.sh -[[ -r /usr/local/share/z/z.sh ]] && source /usr/local/share/z/z.sh +[[ -r /usr/local/etc/profile.d/z.sh ]] && source /usr/local/share/z/z.sh # System Specific case `uname` in -- cgit v1.2.3