aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-01-04 10:28:15 +0800
committerGuangxiong Lin <[email protected]>2022-01-04 10:28:15 +0800
commitbf00f3f3e3a240594c08bc3599103fe7680acbcf (patch)
tree6be7084bac21f58ca1c635f9f61444801d0db816
parent5d0a5c68c6f4b1b222a07871aebc503c357ec3ad (diff)
downloaddotfiles-bf00f3f3e3a240594c08bc3599103fe7680acbcf.tar.gz
dotfiles-bf00f3f3e3a240594c08bc3599103fe7680acbcf.tar.bz2
dotfiles-bf00f3f3e3a240594c08bc3599103fe7680acbcf.zip
Update z.sh config on macOS
-rw-r--r--.env5
-rw-r--r--.zshrc2
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