add fish config
This commit is contained in:
@@ -154,6 +154,15 @@ function portcheck
|
|||||||
echo $port
|
echo $port
|
||||||
end
|
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 port 'sudo ss -tulnp | grep'
|
||||||
abbr -a process 'ps aux | grep'
|
abbr -a process 'ps aux | grep'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user