dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 820372684c2fc8cf6ae07106defc5fc5ccc1a338
parent 356eaa6db9a8e3731b911e06f8e4663748616a3b
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Tue, 21 Mar 2023 21:41:01 +0100

lf: use zoxide

Diffstat:
Mlf/lfrc | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lf/lfrc b/lf/lfrc @@ -205,16 +205,12 @@ cmd edit_config :{{ source ~/.config/lf/lfrc }} -# quickly cd into frecent directories using github.com/rupa/z cmd z ${{ set +u if [ $# -gt 0 ]; then dest='' - # See: https://github.com/skywind3000/z.lua or https://github.com/rupa/z - if [ -f "$DOTFILES/shell/z/z.sh" ]; then - export _Z_NO_PROMPT_COMMAND=1 - source "$DOTFILES/shell/z/z.sh" - dest="$(_z "$@" && pwd)" + if command -v zoxide >/dev/null 2>&1; then + dest="$(zoxide query "$@")" fi if test -n "${dest}"; then