From bf158fb1379535b971eaa967fea502b7425fbab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Wed, 24 Apr 2024 15:41:19 +0200 Subject: [PATCH] move fdfind alias to the top --- .config/zsh/.zshrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 1e6e908..862a5f0 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -19,6 +19,11 @@ setopt autocd # to add other keys to this hash, see: man 5 terminfo typeset -g -A key +# We need this here since it's used below +if command -v fdfind &> /dev/null; then + alias fd="fdfind" +fi + # Use vi-mode source ${XDG_CONFIG_HOME}/zsh/zsh-vi-mode/zsh-vi-mode.plugin.zsh ZVM_VI_INSERT_ESCAPE_BINDKEY=jj @@ -268,10 +273,6 @@ else alias lf="cd \"\$(/usr/bin/lf -print-selection -print-last-dir)\"" fi -if command -v fdfind &> /dev/null; then - alias fd="fdfind" -fi - function o () { xdg-open "$1" &! }