backgroundbackground

自用fish alias

Fish / Alias / Console / Linux

其他

2024-11-05 06:08

自用fish配置

这里记录了我用fish的配置文件,主要是常用的快捷键

fish是个很方便的开箱即用的shell

文件:.config/fish/config.fish

if status is-interactive
    # Commands to run in interactive sessions can go here
    abbr -a l ls
    abbr -a ll ls -alh
    abbr -a lll ls -lh
    abbr -a d df -h
    abbr -a f free -h
    abbr -a e exit
    abbr -a c clear
    abbr -a ss sudo systemctl
    abbr -a j sudo journalctl
    abbr -a gl git log --oneline --graph -10
    abbr -a gll git log --all --oneline --graph
    abbr -a gf git fetch -v
    abbr -a t tmux
    abbr -a h sudo htop
    abbr -a n sudo netstat -pltn
    abbr -a p lspower
    abbr -a b sudo btrfs
    abbr -a s sensors
    abbr -a z sudo zramctl
    abbr -a dc sudo docker
    abbr -a pp sudo cpupower frequency-set -g performance
    abbr -a p9 sudo cpupower frequency-set -g schedutil
    abbr -a pc proxychains

    set -agx PATH ~/.local/bin
end