add fish config

This commit is contained in:
FlintyLemming
2026-01-05 10:59:46 +08:00
parent c5499fe473
commit 3acb2c6817

View File

@@ -154,6 +154,15 @@ function portcheck
echo $port
end
function y
set -l tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
abbr -a port 'sudo ss -tulnp | grep'
abbr -a process 'ps aux | grep'