From f7b2d69e6ff913d163dae11f1be31e05390273d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sat, 25 Oct 2025 19:26:51 +0200 Subject: feat(fish): cli utils --- config/fish/config.fish | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'config/fish/config.fish') diff --git a/config/fish/config.fish b/config/fish/config.fish index e754556..8223bb0 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -40,3 +40,21 @@ set --export XBPS_DISTDIR "$HOME/.void-packages" # gpg export GPG_TTY=$(tty) + +# other +set -gx EDITOR "nvim" + +fzf_configure_bindings --directory=\cf --git_log=\cg --git_status=\cs + +# yazi +function y + set tmp (mktemp -t "yazi-cwd.XXXXXX") + yazi $argv --cwd-file="$tmp" + if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ] + builtin cd -- "$cwd" + end + rm -f -- "$tmp" +end + +# alias +alias ll "eza -lha --icons=auto --sort=name --group-directories-first" -- cgit v1.2.3