zoxide: move ranger.py to deploy.sh

This commit is contained in:
Hoang Nguyen 2021-06-10 07:24:33 +03:00
parent 33f9026493
commit c33b27332c
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
5 changed files with 4 additions and 16 deletions

View File

@ -143,6 +143,7 @@ echo "
[ -d ~/.config/emacs-config/doom ] || git clone https://github.com/hlissner/doom-emacs ~/.config/emacs-config/doom
[ -d ~/.config/tmux/plugins/tpm ] || git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
[ -d ~/.config/ranger/plugins/ranger_devicons ] || git clone https://github.com/FollieHiyuki/ranger_devicons ~/.config/ranger/plugins/ranger_devicons
[ -d ~/.config/ranger/plugins/ranger-zoxide ] || git clone https://github.com/jchook/ranger-zoxide ~/.config/ranger/plugins/ranger-zoxide
echo "
~~~ Post deployment ~~~

View File

@ -629,11 +629,6 @@ fi
# zoxide
if command -v zoxide >/dev/null; then
eval "$(zoxide init bash)"
if command -v ranger >/dev/null; then
if [ ! -f "$HOME/.config/ranger/plugins/ranger_zoxide.py" ]; then
curl -fLo $HOME/.config/ranger/plugins/ranger_zoxide.py https://github.com/ajeetdsouza/zoxide/raw/main/contrib/ranger.py
fi
fi
fi
# autostart gpg-agent at login

View File

@ -19,7 +19,9 @@ set -gx XDG_CONFIG_HOME $HOME/.config
set -gx XDG_CACHE_HOME $HOME/.cache
set -gx XDG_DATA_HOME $HOME/.local/share
set -gx XDG_DATA_DIRS $HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
set -gx XDG_RUNTIME_DIR /tmp/fish.$USER
if not command -v loginctl >/dev/null
set -gx XDG_RUNTIME_DIR /tmp/fish.$USER
end
# alternate paths
set -gx LESSHISTFILE -
set -gx MOST_INITFILE $XDG_CONFIG_HOME/mostrc

View File

@ -80,9 +80,4 @@ fzf_key_bindings
# zoxide
if command -v zoxide >/dev/null
zoxide init fish | source
if command -v ranger >/dev/null
if not test -f "$HOME/.config/ranger/plugins/ranger_zoxide.py"
curl -fLo $HOME/.config/ranger/plugins/ranger_zoxide.py https://github.com/ajeetdsouza/zoxide/raw/main/contrib/ranger.py
end
end
end

View File

@ -43,11 +43,6 @@ fi
# zoxide
if command -v zoxide >/dev/null; then
eval "$(zoxide init zsh)"
if command -v ranger >/dev/null; then
if [ ! -f "$HOME/.config/ranger/plugins/ranger_zoxide.py" ]; then
curl -fLo $HOME/.config/ranger/plugins/ranger_zoxide.py https://github.com/ajeetdsouza/zoxide/raw/main/contrib/ranger.py
fi
fi
fi
# poetry