66 lines
1.4 KiB
Fish
Raw Normal View History

2024-02-01 19:59:19 +00:00
# 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
2024-02-01 22:59:16 +00:00
alias gb "go build -v"
alias gt "go test -v"
2024-02-01 19:59:19 +00:00
# Hyperfine
alias bench "hyperfine --shell=none"
2024-02-01 22:59:16 +00:00
# List
alias l "ls"
2024-02-01 23:13:31 +00:00
alias ll "ls -l"
alias l2 "ls -T -L2"
2024-02-01 22:59:16 +00:00
alias lu "ls -l --total-size --sort=size --reverse --no-permissions --no-user --no-time"
alias lp "ls -l --no-filesize --no-time"
2024-02-01 19:59:19 +00:00
# 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"
2024-02-01 22:59:16 +00:00
alias pl "pacman -Q"
alias po "pacman -Qo"
alias pc "sudo pacman -Sc"
2024-03-05 12:28:48 +00:00
alias paur "pacman -Qm"
2024-02-01 22:59:16 +00:00
alias porphan "pacman -Qtdq"
2024-02-01 19:59:19 +00:00
# Tmux
alias t "tmux"
alias ta "tmux attach"
alias td "tmux detach"
alias tl "tmux ls"
alias tk "tmux kill-server"
# Systemctl
alias s "systemctl"
alias s+ "systemctl start"
alias s- "systemctl stop"
2024-02-01 22:59:16 +00:00
alias sr "systemctl restart"
alias ss "systemctl status"
2024-02-01 19:59:19 +00:00
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"
2024-02-01 22:59:16 +00:00
alias cfg "config"
2024-02-01 19:59:19 +00:00
alias cls "clear"
alias hex "hexdump -C"
2024-02-01 22:59:16 +00:00
alias log "journalctl"
2024-02-01 19:59:19 +00:00
# Close all windows
alias closeall "wmctrl -l | awk '{print $1}' | xargs -rn1 wmctrl -ic"