# Zsh abbreviations - Generated from shared/abbreviations.yaml
# DO NOT EDIT THIS FILE DIRECTLY - Edit shared/abbreviations.yaml instead
# Regenerate with: bash shared/generate-zsh-abbr.sh
#
# https://zsh-abbr.olets.dev

# unix
abbr "c"="clear"
abbr "cv"="command -v"
abbr "df"="df -h"
abbr "du"="du -h"
abbr "dud"="du -d 1 -h"
abbr "duf"="du -sh *"
abbr "cat"="bat"
abbr "cp"="gcp -iv"
abbr "l"="ls -lhF --git"
abbr "mkdir"="mkdir -pv"
abbr "mv"="mv -iv"

# shell
abbr "src"="source ${HOME}/.zshrc"

# system
abbr "fast"="fastfetch"

# claude code
abbr "cl"="claude"
abbr "clsp"="claude --dangerously-skip-permissions"
abbr "clh"="claude --help"
abbr "clv"="claude --version"
abbr "clr"="claude --resume"
abbr "clc"="claude --continue"
abbr "clp"="claude --print"
abbr "clcp"="claude --continue --print"
abbr "clup"="claude update"
abbr "clmcp"="claude mcp"

# homebrew
abbr "brc"="brew cleanup"
abbr "brb"="brew bundle"
abbr "brd"="brew doctor"
abbr "brg"="brew upgrade"
abbr "bri"="brew info"
abbr "brl"="brew list -1"
abbr "brlf"="brew list | fzf"
abbr "bro"="brew outdated"
abbr "brs"="brew search"
abbr "bru"="brew update"
abbr "bs0"="brew services stop"
abbr "bs1"="brew services start"
abbr "bsc"="brew services cleanup"
abbr "bsl"="brew services list"
abbr "bsr"="brew services restart"
abbr "bsv"="brew services"

# config dirs
abbr "cdot"="cd ${DOTFILES}"
abbr "cdxc"="cd ${XDG_CONFIG_HOME}"
abbr "cdfi"="cd ${XDG_CONFIG_HOME}/fish"
abbr "cdnv"="cd ${XDG_CONFIG_HOME}/nvim"
abbr "cdxd"="cd ${XDG_DATA_HOME}"
abbr "cdxa"="cd ${XDG_CACHE_HOME}"
abbr "cdxs"="cd ${XDG_STATE_HOME}"
abbr "cdlb"="cd ${HOME}/.local/bin"
abbr "cdbn"="cd ${HOME}/.bin"
abbr "cdkb"="cdkb"

# navigation
abbr ".."="cd .."
abbr "..."="cd ../../"
abbr "...."="cd ../../../"
abbr "....."="cd ../../../../"
abbr "-"="cd -"

# tree
abbr "t2"="ll --tree --level=2"
abbr "t2a"="ll --tree --level=2 -a"
abbr "t3"="ll --tree --level=3"
abbr "t3a"="ll --tree --level=3 -a"
abbr "t4"="ll --tree --level=4"
abbr "t4a"="ll --tree --level=4 -a"

# dev tools
abbr "gg"="lazygit"
abbr "hm"="hivemind"

# markdown
abbr "mdl"="markdownlint-cli2 --config ~/.markdownlint-cli2.yaml "**/*.md""
abbr "mdlf"="markdownlint-cli2 --config ~/.markdownlint-cli2.yaml --fix "**/*.md""
abbr "mdlc"="markdownlint-cli2 --config ~/.markdownlint-cli2.yaml "*.md""
abbr "mdlcf"="markdownlint-cli2 --config ~/.markdownlint-cli2.yaml --fix "*.md""
abbr "mdla"="markdownlint-cli2 --config ~/.markdownlint-cli2.yaml "**/*.md""
abbr "mdlaf"="markdownlint-cli2 --config ~/.markdownlint-cli2.yaml --fix "**/*.md""
abbr "mdv"="markdown-validate"
abbr "mdvf"="markdown-validate --fix"
abbr "mdvq"="markdown-validate --fix --quiet"

# local servers
abbr "hts"="http-server"
abbr "lvs"="live-server"

# neovim
abbr "nv"="nvim"
abbr "vi"="nvim"
abbr "vi0"="nvim -u NONE"
abbr "vir"="nvim -R"
abbr "vv"="nvim --version | less"

# git
abbr "ga"="git add"
abbr "gaa"="git add --all"
abbr "gap"="git add --patch"
abbr "gb"="git branch"
abbr "gba"="git branch --all"
abbr "gbm"="git branch -m"
abbr "gbr"="git branch --remote"
abbr "gca"="git commit --amend"
abbr "gcl"="git clone"
abbr "gcm"="git cm"
abbr "gco"="git checkout"
abbr "gcob"="git checkout -b"
abbr "gcp"="git cherry-pick"
abbr "gd"="git diff"
abbr "gdc"="git diff --cached"
abbr "gdt"="git difftool"
abbr "gf"="git fetch"
abbr "gfa"="git fetch --all"
abbr "gfp"="git fetch --prune"
abbr "gfu"="git fetch upstream"
abbr "gl"="git l"
abbr "glg"="git lg"
abbr "gps"="git push"
abbr "gpl"="git pull"
abbr "gpsf"="git push --force-with-lease"
abbr "gpst"="git push --tags"
abbr "gpub"="git publish"
abbr "gpuo"="git push -u origin"
abbr "gra"="git remote add"
abbr "grb"="git rebase"
abbr "grba"="git rebase --abort"
abbr "grbc"="git rebase --continue"
abbr "grbi"="git rebase -i"
abbr "gre"="git reset"
abbr "grso"="git remote set-url origin"
abbr "grsu"="git remote set-url"
abbr "grup"="git remote add upstream"
abbr "grv"="git remote -v"
abbr "gsh"="git show"
abbr "gss"="git stash"
abbr "gssa"="git stash apply"
abbr "gssd"="git stash drop"
abbr "gssl"="git stash list"
abbr "gssp"="git stash pop"
abbr "gsss"="git stash save"
abbr "gst"="git status"
abbr "gsts"="git status --short"
abbr "gt"="git tag"

# docker
abbr "dc"="docker compose"
abbr "dcu"="docker compose up"
abbr "dcud"="docker compose up -d"
abbr "dcb"="docker compose up --build"
abbr "dcbd"="docker compose up --build -d"
abbr "dcd"="docker compose down"
abbr "dcdv"="docker compose down -v"
abbr "dce"="docker compose exec"
abbr "dcr"="docker compose restart"
abbr "dl"="docker logs"
abbr "dim"="docker images"
abbr "dnet"="docker network"
abbr "dps"="docker ps"
abbr "dpsa"="docker ps -a"
abbr "dsp"="docker system prune --all"
abbr "d"="docker"
abbr "db"="docker build"
abbr "dcl"="docker compose logs"
abbr "dclf"="docker compose logs -f"
abbr "dcps"="docker compose ps"
abbr "dcpull"="docker compose pull"
abbr "dcrm"="docker compose rm"
abbr "dcstart"="docker compose start"
abbr "dcstop"="docker compose stop"
abbr "de"="docker exec"
abbr "dei"="docker exec -i"
abbr "deit"="docker exec -it"
abbr "dpu"="docker pull"
abbr "drm"="docker rm"
abbr "drmi"="docker rmi"
abbr "drun"="docker run"
abbr "dst"="docker start"
abbr "dstp"="docker stop"

# rails
abbr "RED"="RAILS_ENV=development"
abbr "REP"="RAILS_ENV=production"
abbr "RET"="RAILS_ENV=test"
abbr "bbi"="bin/bundle install"
abbr "bbo"="bin/bundle outdated"
abbr "bbu"="bin/bundle update"
abbr "bd"="bin/dev"
abbr "cred"="bin/rails credentials:edit --environment"
abbr "crsp"="env COVERAGE=true bin/rspec ."
abbr "ocr"="overmind connect rails"
abbr "om"="overmind start"
abbr "psp"="bin/rake parallel:spec"
abbr "r"="bin/rails"
abbr "rc"="bin/rails console"
abbr "rcop"="rubocop"
abbr "rdb"="bin/rails dbconsole"
abbr "rdbc"="bin/rails db:create"
abbr "rdbd"="bin/rails db:drop"
abbr "rdm"="bin/rails db:migrate"
abbr "rdms"="bin/rails db:migrate:status"
abbr "rdr"="bin/rails db:rollback"
abbr "rdr2"="bin/rails db:rollback STEP=2"
abbr "rdr3"="bin/rails db:rollback STEP=3"
abbr "rdbs"="bin/rails db:seed"
abbr "rgen"="bin/rails generate"
abbr "rgc"="bin/rails generate controller"
abbr "rgm"="bin/rails generate migration"
abbr "rgs"="bin/rails generate stimulus"
abbr "rr"="bin/rails routes"
abbr "rrc"="bin/rails routes controller"
abbr "rrg"="bin/rails routes | grep"
abbr "rs"="bin/rails server"
abbr "rsp"="bin/rspec ."
abbr "rtp"="bin/rails db:test:prepare"

# ruby
abbr "b"="bundle"
abbr "be"="bundle exec"
abbr "ber"="bundle exec rspec"
abbr "beri"="bundle exec rspec --init"
abbr "bes"="bundle exec standardrb"
abbr "besf"="bundle exec standardrb --fix"
abbr "gel"="gem cleanup"
abbr "gemv"="gem environment"
abbr "gins"="gem install"
abbr "gli"="gem list"
abbr "gout"="gem outdated"
abbr "guns"="gem uninstall"
abbr "gup"="gem update"
abbr "gus"="gem update --system"

# npm
abbr "nb"="npm build"
abbr "ncl"="npm clean"
abbr "nd"="npm run dev"
abbr "ndv"="npm develop"
abbr "ni"="npm install"
abbr "nid"="npm install -D"
abbr "nig"="npm install -g"
abbr "nit"="npm init"
abbr "ns"="npm serve"
abbr "nst"="npm start"
abbr "nt"="npm test"

# asdf
abbr "ail"="asdf install lua"
abbr "ain"="asdf install nodejs"
abbr "ainl"="asdf install nodejs latest"
abbr "aip"="asdf install python"
abbr "air"="asdf install ruby"
abbr "airl"="asdf install ruby latest"
abbr "ala"="asdf list all"
abbr "ali"="asdf list"
abbr "aui"="asdf install"
abbr "acl"="asdf current"
abbr "aun"="asdf uninstall"
abbr "ares"="asdf reshim"
abbr "asu"="asdf set -u"
abbr "ast"="asdf set"

# tmux
abbr "tl"="tmux ls"
abbr "tlw"="tmux list-windows"

# tmuxinator
abbr "mux"="tmuxinator"
abbr "ms"="tmuxinator start"
abbr "msb1"="tmuxinator start bfo1"
abbr "msb2"="tmuxinator start bfo2"
abbr "msbc"="tmuxinator start bfc"
abbr "msc"="tmuxinator start comix_distro"
abbr "msd"="tmuxinator start dot"
abbr "mse"="tmuxinator start euroteamoutreach"
abbr "msl"="tmuxinator start laptop"
abbr "msm"="tmuxinator start mux"
abbr "mso"="tmuxinator start ofreport"

# yarn
abbr "y"="yarn"
abbr "ya"="yarn add"
abbr "yad"="yarn add --dev"
abbr "yag"="yarn add --global"
abbr "yap"="yarn add --peer"
abbr "yarn-upgrade"="yarn upgrade-interactive --latest"
abbr "yb"="yarn build"
abbr "ycc"="yarn cache clean"
abbr "yd"="yarn dev"
abbr "yga"="yarn global add"
abbr "ygl"="yarn global list"
abbr "ygr"="yarn global remove"
abbr "ygu"="yarn global upgrade"
abbr "yh"="yarn help"
abbr "yi"="yarn install"
abbr "yic"="yarn install --check-files"
abbr "yif"="yarn install --frozen-lockfile"
abbr "yin"="yarn init"
abbr "yln"="yarn link"
abbr "yls"="yarn list"
abbr "yout"="yarn outdated"
abbr "yp"="yarn pack"
abbr "ypub"="yarn publish"
abbr "yr"="yarn run"
abbr "yre"="yarn remove"
abbr "ys"="yarn serve"
abbr "yst"="yarn start"
abbr "yt"="yarn test"
abbr "ytc"="yarn test --coverage"
abbr "yuc"="yarn global upgrade && yarn cache clean"
abbr "yui"="yarn upgrade-interactive"
abbr "yuil"="yarn upgrade-interactive --latest"
abbr "yup"="yarn upgrade"
abbr "yv"="yarn version"
abbr "yw"="yarn workspace"
abbr "yws"="yarn workspaces"

# postgresql
abbr "psq"="pgcli -d postgres"

# middleman
abbr "mm"="bundle exec middleman"
abbr "mmb"="bundle exec middleman build"
abbr "mmbc"="bundle exec middleman build --clean"
abbr "mmc"="bundle exec middleman console"
abbr "mms"="bundle exec middleman server"


# Note: Some abbreviations have been replaced by smart functions:
# - gpum: Use gpum function (smart git push with upstream tracking)
# - grbm: Use grbm function (smart git rebase against default branch)
# - gcom: Use gcom function (smart git checkout default branch)
