dotfiles/lib/shared/modules/zsh/abbreviations.zsh

129 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"
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 gb="git blame"
abbr gan="git add -N"
abbr gap="git add -p"
abbr gc="git commit"
abbr gca="git commit --amend"
2024-10-06 08:55:15 +00:00
abbr gcan="git commit --amend --no-edit"
abbr gcm="git commit -m"
abbr gd="git diff"
abbr gf="git fetch"
abbr gfa="git fetch --all"
abbr gl="git log"
abbr glo="git log --oneline"
abbr gls="git log --stat"
abbr gpl="git pull"
2024-10-06 08:55:15 +00:00
abbr gplr="git pull --rebase"
abbr gps="git push"
abbr gri="git rebase -i"
abbr gs="git status"
abbr gsh="git show"
abbr gst="git status"
# tmux
abbr ta="tmux attach"
abbr tl="tmux list-sessions"
abbr tk="tmux kill-session"
2024-08-24 22:36:39 +00:00
# zellij
2024-09-03 23:00:16 +00:00
abbr czs="create-zellij-session"
abbr z="zellij"
abbr za="zellij attach"
abbr zd="zellij delete-session"
abbr zda="zellij delete-all-sessions"
abbr ze="zellij edit"
abbr zei="zellij edit --in-place"
abbr zk="zellij kill-session"
abbr zka="zellij kill-all-sessions | sort"
abbr zl="zellij list-sessions | grep -v EXITED"
abbr zla="zellij list-sessions"
2024-08-24 22:36:39 +00:00
abbr znt="zellij action new-tab"
abbr zr="zellij run --"
2024-09-03 23:00:16 +00:00
abbr zri="zellij run --in-place --"
2024-08-24 22:36:39 +00:00
abbr zrf="zellij run --floating --"
2024-09-03 23:00:16 +00:00
abbr multitask="zellij action start-or-reload-plugin file:$HOME/zellij-plugins/multitask.wasm --configuration "shell=$SHELL,cwd=`pwd`""
2024-08-24 22:36:39 +00:00
# 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"