diff options
author | Guangxiong Lin <[email protected]> | 2021-12-13 23:11:53 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2021-12-13 23:11:53 +0800 |
commit | 16de7dd91e094e2ff8bb0fe5add9c5074c6bde94 (patch) | |
tree | aa85246eb32c485c4a1b54741f03940e3d0bb97c | |
parent | 8becf822b792ad5456084c6ddf51f0c70084434d (diff) | |
download | dotfiles-16de7dd91e094e2ff8bb0fe5add9c5074c6bde94.tar.gz dotfiles-16de7dd91e094e2ff8bb0fe5add9c5074c6bde94.tar.bz2 dotfiles-16de7dd91e094e2ff8bb0fe5add9c5074c6bde94.zip |
Migrate autojump to z
-rw-r--r-- | .env | 2 | ||||
-rw-r--r-- | .zshrc | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -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' @@ -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' |