dotfiles/nix/modules/home-manager/features/cli/zsh/abbreviations.zsh

136 lines
3.2 KiB
Bash
Raw Normal View History

abbr c="clear"
abbr cs="create-script"
abbr daily="run create-daily next"
abbr rst="rst2pdf"
2024-11-20 11:06:12 +00:00
abbr st="source .tmux"
abbr sz="source ~/.config/zsh/.zshrc"
abbr ti="timer"
2024-09-03 23:00:16 +00:00
abbr uagr="update-all-git-repos"
abbr v="nvim"
2024-09-03 23:00:16 +00:00
abbr yt="yt-dlp"
abbr evl="export-video-list"
abbr vv="cat ~/Documents/videos.json"
abbr g="git"
abbr ga="git add"
abbr gan="git add -N"
abbr gap="git add -p"
2024-11-04 23:03:22 +00:00
abbr gb="git branch"
abbr gbl="git blame"
abbr gc="git commit"
abbr gca="git commit --amend"
2024-10-06 08:55:15 +00:00
abbr gcan="git commit --amend --no-edit"
2024-10-25 19:50:47 +00:00
abbr gcl="git clone"
abbr gcm="git commit -m"
2024-10-25 19:50:47 +00:00
abbr gco="git checkout"
2024-11-09 21:24:11 +00:00
abbr gcob="git checkout -b"
abbr gd="git diff"
abbr gds="git diff --staged"
abbr gf="git fetch"
abbr gfa="git fetch --all"
abbr gl="git log"
abbr glo="git log --oneline"
abbr gls="git log --stat"
2024-11-09 21:24:11 +00:00
abbr gm="git merge"
abbr gmf="git merge --ff"
abbr gmnf="git merge --no-ff"
2024-12-10 09:13:31 +00:00
abbr gp="git push"
abbr gpa="git push acquia"
abbr gpam="git push acquia main"
abbr gpap="git push acquia HEAD:production"
abbr gpl="git pull"
2024-10-06 08:55:15 +00:00
abbr gplr="git pull --rebase"
2024-12-10 09:13:31 +00:00
abbr gpo="git push origin"
abbr gpom="git push origin main"
2024-10-25 19:50:47 +00:00
abbr gr="git rebase"
2024-11-09 21:24:11 +00:00
abbr gra="git rebase --abort"
abbr grc="git rebase --continue"
abbr gri="git rebase -i"
abbr gs="git status"
abbr gsh="git show"
2024-10-25 19:50:47 +00:00
abbr gst="git stash"
abbr gstp="git stash pop"
# tmux
abbr ta="tmux attach"
abbr tl="tmux list-sessions"
abbr tk="tmux kill-session"
# Docker and Docker Compose.
abbr dk="docker"
abbr dkp="docker ps"
abbr dkpa="docker ps -a"
abbr dkpaq="docker ps -a -q"
abbr dkb="docker build -t"
abbr dks="docker start"
abbr dkt="docker stop"
abbr dkrm="docker rm"
abbr dkri="docker rmi"
abbr dke="docker exec -ti"
abbr dkl="docker logs -f"
abbr dki="docker images"
abbr dkpu="docker pull"
abbr dkph="docker push"
abbr dkbnc="docker build --no-cache -t"
abbr dkr="docker run --rm"
abbr dkrti="docker run --rm -ti"
abbr dkc="docker compose"
abbr dkcb="docker compose build"
abbr dkcu="docker compose up"
abbr dkclean="docker ps -q -a -f status=exited | xargs -r docker rm && docker images -q -f dangling=true | xargs -r docker rmi"
# Nix and direnv.
abbr dea="direnv allow"
abbr dee="direnv edit"
abbr nxf="nix flake"
abbr nxfc="nix flake check"
abbr nxfs="nix flake show"
abbr nxfu="nix flake update"
abbr nxr="nix run nixpkgs#%"
abbr nxs="nix shell nixpkgs#%"
# run scripts.
abbr r="run"
abbr rc="run composer"
2024-08-21 08:00:00 +00:00
abbr rcda="run composer dump-autoload"
2024-10-09 16:46:37 +00:00
abbr rci="run composer install"
2024-08-21 08:00:00 +00:00
abbr rcr="run composer require"
abbr rcu="run composer update"
abbr rd="run drush"
abbr rdce="run drush config:export -y"
abbr rdci="run drush config:import -y"
abbr rdcr="run drush cache:rebuild"
abbr rdscr="run drush php:script"
abbr rduli="run drush uli"
abbr rdup="run drush updatedb -y"
2024-08-21 08:00:00 +00:00
abbr rpub="run publish"
abbr rt="run test"
abbr -g A1="| awk '{print $1}'"
abbr -g C="| xclip -sel clip"
abbr -g Fj="| jq ."
abbr -g Fy="| yq ."
abbr -g G="| grep"
abbr -g GH="| grep HTTP"
abbr -g Gi="| grep -i"
abbr -g H2="| head -n 20"
abbr -g H="| head"
abbr -g L="| less"
abbr -g V="| nvim -"
abbr -g X="| xargs -I1"
2024-10-06 08:55:15 +00:00
abbr today="task +TODAY"
abbr tomorrow="task +TOMORROW"
abbr overdue="task +OVERDUE"
abbr nah="git reset --hard; git clean -fd"
abbr wip="git commit -m wip"
2024-11-16 15:11:21 +00:00
abbr dv="devenv"
abbr dvi="devenv info"
abbr dvp="devenv processes"
abbr dvs="devenv shell"
abbr dvt="devenv tasks"
abbr dvu="devenv up"