aboutsummaryrefslogtreecommitdiff
path: root/config/fish/config.fish
diff options
context:
space:
mode:
Diffstat (limited to 'config/fish/config.fish')
-rw-r--r--config/fish/config.fish18
1 files changed, 18 insertions, 0 deletions
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"