From 16de7dd91e094e2ff8bb0fe5add9c5074c6bde94 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Mon, 13 Dec 2021 23:11:53 +0800 Subject: Migrate autojump to z --- .env | 2 ++ .zshrc | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index a404b39..a41f106 100644 --- a/.env +++ b/.env @@ -6,6 +6,8 @@ if [[ $TERM =~ 'st' ]]; then fi export TERMINAL=$TERMINAL +[ -f /usr/share/z/z.sh -o -f /usr/local/share/z/z.sh ] && export _Z_CMD='j' + export FZF_DEFAULT_COMMAND='find . -type f' if [ -f /usr/bin/fd ];then export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git' diff --git a/.zshrc b/.zshrc index 7a8f7a4..6348699 100644 --- a/.zshrc +++ b/.zshrc @@ -21,14 +21,12 @@ HISTFILE=~/.zsh_history source $HOME/.path source $HOME/.env -[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh +[[ -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 # System Specific case `uname` in Darwin) - # commands for macOS - [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh - # Alias alias ls='ls -G' alias ll='ls -lhG' -- cgit v1.2.3