add fish config

This commit is contained in:
FlintyLemming
2025-12-17 14:53:23 +08:00
parent 020f21d158
commit 8f1681b3a2

View File

@@ -6,7 +6,18 @@ function ls --description 'alias ls to eza if possible'
end end
end end
abbr -a port 'sudo ss -tulnp | grep' function dotu
abbr -a process 'ps aux | grep' set -l current_dir (pwd)
cd $HOME/.flinty
if git pull
source ~/.config/fish/config.fish
echo "Config reloaded successfully!"
end
# 回到原位
cd $current_dir
end
alias dotu='cd $HOME/.flinty && git pull && source ~/.config/fish/config.fish' abbr -a port 'sudo ss -tulnp | grep'
abbr -a process 'ps aux | grep'