Files
dotfiles/fish/add-on.fish
FlintyLemming 342cbb08cf add bash config
2025-12-17 17:15:04 +08:00

25 lines
495 B
Fish

## 替换 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'