更新 fish 配置,添加 systemd 和 docker 相关命令缩写

This commit is contained in:
2026-04-02 15:54:17 +08:00
parent e08364e93b
commit c5cc702462

View File

@@ -35,6 +35,14 @@ if status is-interactive
type -q tmux; and abbr tmn 'tmux new'
type -q tmux; and abbr tma 'tmux attach'
type -q tmux; and abbr tml 'tmux list-sessions'
type -q docker; and abbr d docker
type -q docker-compose; and abbr dc 'docker-compose'
# systemd 常用缩写
type -q systemctl; and abbr sc systemctl
type -q systemctl; and abbr scu 'systemctl --user'
type -q journalctl; and abbr jc journalctl
type -q journalctl; and abbr jcu 'journalctl --user'
# ========= thefuck自动命令纠错 =========
type -q thefuck; and thefuck --alias | source