85 lines
1.9 KiB
Fish
85 lines
1.9 KiB
Fish
# Git
|
|
alias g "git"
|
|
alias gc "git clone"
|
|
alias gd "git diff"
|
|
alias gl "git log --oneline"
|
|
alias gp "git pull"
|
|
alias gs "git status"
|
|
alias home "git --git-dir=$HOME/.home/ --work-tree=$HOME"
|
|
|
|
# Go
|
|
alias gb "go build -v"
|
|
alias gt "go test -v"
|
|
|
|
# Flatpak
|
|
alias f "flatpak"
|
|
alias fc "flatpak remove --unused"
|
|
alias fi "flatpak install"
|
|
alias fl "flatpak list --app"
|
|
alias fr "flatpak remove"
|
|
alias fu "flatpak update"
|
|
alias frepair "sudo flatpak repair"
|
|
|
|
# Hyperfine
|
|
alias bench "hyperfine --shell=none"
|
|
|
|
# Kernel
|
|
alias kerr "sudo dmesg --level=emerg,alert,crit,err"
|
|
alias klog "sudo dmesg"
|
|
|
|
# List
|
|
alias l "ls"
|
|
alias ll "ls -l"
|
|
alias l2 "ls -T -L2"
|
|
alias lu "ls -l --total-size --sort=size --reverse --no-permissions --no-user --no-time"
|
|
alias lp "ls -l --no-filesize --no-time"
|
|
|
|
# Lsof
|
|
alias tcp "lsof -PniTCP"
|
|
alias udp "lsof -PniUDP"
|
|
|
|
# Neovim
|
|
alias e "nvim"
|
|
alias n "nvim"
|
|
|
|
# Pacman
|
|
alias p "pacman"
|
|
alias pi "sudo pacman -S"
|
|
alias pr "sudo pacman -Rs"
|
|
alias pu "sudo pacman -Syu"
|
|
alias pl "pacman -Q"
|
|
alias po "pacman -Qo"
|
|
alias pc "sudo pacman -Sc"
|
|
alias paur "pacman -Qm"
|
|
alias porphan "pacman -Qtdq"
|
|
|
|
# Tmux
|
|
alias ta "tmux attach"
|
|
alias td "tmux detach"
|
|
alias tl "tmux ls"
|
|
alias tk "tmux kill-server"
|
|
|
|
# Systemctl
|
|
alias s "systemctl"
|
|
alias s+ "sudo systemctl start"
|
|
alias s- "sudo systemctl stop"
|
|
alias se "sudo systemctl enable"
|
|
alias sd "sudo systemctl disable"
|
|
alias sr "sudo systemctl restart"
|
|
alias ss "systemctl status"
|
|
alias sl "systemctl list-units --type=service --state=running"
|
|
alias sld "systemctl list-unit-files --type=service --state=disabled"
|
|
alias sle "systemctl list-unit-files --type=service --state=enabled"
|
|
alias slt "systemctl list-timers"
|
|
|
|
# ...
|
|
alias cdp "cd ~/projects"
|
|
alias cfg "config"
|
|
alias cls "clear"
|
|
alias hex "hexdump -C"
|
|
alias log "journalctl"
|
|
alias utc "date -u +'%Y-%m-%dT%H:%M:%SZ'"
|
|
|
|
# Close all windows
|
|
alias closeall "wmctrl -l | awk '{print $1}' | xargs -rn1 wmctrl -ic"
|