## 替换 ls 默认行为 function ls --description 'alias ls to eza if possible' if type -q eza eza -la --icons $argv else command ls -la $argv end end ## 更新配置 function dotu 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 abbr -a port 'sudo ss -tulnp | grep' abbr -a process 'ps aux | grep'