Last active
July 17, 2023 15:58
-
-
Save seanwash/ea18f1cf88e080b70af5658f4b4558da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aliases | |
# ---------- | |
alias ..="cd .." | |
alias ll="exa --long --header --git -a" | |
alias n="nvim" | |
alias c="cd ~/Code" | |
alias s="cd ~/Code/sidedoor" | |
alias config="cd ~/.config" | |
alias bluetooth="sudo pkill bluetoothd" # When bluetooth gets laggy, just kill it. | |
# Node aliases | |
alias dev="npm run ci && npm run dev" | |
# Git aliases | |
alias g="git" | |
alias gs="git status" | |
alias gc="git commit" | |
alias gcm="git commit -m" | |
alias gw="git switch" | |
alias ga="git add" | |
alias gt="git tag --sort=-v:refname | head -1" | |
alias tag="git tag" | |
alias tags="git tag --sort=-v:refname | head -1" | |
alias status="git status" | |
alias add="git add ." | |
alias commit="git commit -m" | |
alias amend="git commit --amend" | |
alias stash="git stash" | |
alias snap="git add . && git commit -m 'Snapshot'" | |
alias unsnap="git reset HEAD~1" | |
alias discard="git clean -df; git checkout -- ." | |
alias merge="git merge" | |
alias rebase="git rebase" | |
alias checkout="git checkout" | |
alias apply="stash apply" | |
alias fetch="git fetch" | |
alias pull="git pull" | |
alias push="git push" | |
alias branch="git branch" | |
alias diff="git diff" | |
alias log="git log" | |
alias switch="git switch" | |
alias flow="git flow" | |
# Laravel Aliases | |
alias a="php artisan" | |
alias t="a test" | |
alias artisan="php artisan" | |
alias ide="php artisan ide-helper:generate && php artisan ide-helper:models --nowrite && php artisan ide-helper:meta" | |
alias mfs="a migrate:fresh --seed" | |
alias cc="a cache:clear" | |
alias tinker="php artisan tinker" | |
alias jigsaw="./vendor/bin/jigsaw" | |
alias sail="./vendor/bin/sail" | |
alias sa="./vendor/bin/sail artisan" | |
alias ts="takeout start --all" | |
alias pest="./vendor/bin/pest" | |
alias p="./vendor/bin/pest --compact --path" | |
alias pint="./vendor/bin/pint" | |
alias phpcs="./vendor/bin/phpcs" | |
alias phpinsights="./vendor/bin/phpinsights" | |
alias phpstan="./vendor/bin/phpstan" | |
# Config Editing | |
alias nconfig="nvim ~/.config/nvim/init.lua" | |
alias zconfig="nvim ~/.zshrc" | |
alias kconfig="nvim ~/.config/karabiner/karabiner.json" | |
alias gitconfig="nvim ~/.gitconfig" | |
alias src="source ~/.zshrc" | |
# FZF | |
# https://github.com/junegunn/fzf | |
# ---------- | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
# PHP & Composer | |
# https://getcomposer.org | |
# ---------- | |
export PATH=$PATH:~/.composer/vendor/bin | |
export PATH=$HOME/bin:~/.config/phpmon/bin:$PATH | |
# Ruby | |
# ---------- | |
eval "$(rbenv init - zsh)" | |
export PATH="/opt/homebrew/opt/libpq/bin:$PATH" | |
# Node | |
# ---------- | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# Python | |
# ---------- | |
alias python="python3" | |
alias pip="pip3" | |
# Rust | |
# ---------- | |
export PATH=$PATH:$HOME/.cargo/bin | |
# JetBrains | |
# ---------- | |
export PATH=$PATH:~/.jetbrains | |
export EDITOR=/Users/seanwashington/.jetbrains/idea | |
# Sublime Text | |
# ------------- | |
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH" | |
# Docker | |
# Added by Docker Desktop | |
# ---------- | |
source /Users/seanwashington/.docker/init-zsh.sh || true | |
# Starship Prompt | |
# https://starship.rs | |
# ---------------------- | |
eval "$(starship init zsh)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment