-
Notifications
You must be signed in to change notification settings - Fork 307
Expand file tree
/
Copy pathaliases.sh
More file actions
187 lines (161 loc) · 4.8 KB
/
Copy pathaliases.sh
File metadata and controls
187 lines (161 loc) · 4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# Helpful aliases
#
# Example:
# alias <name>=<string>
# Variables used in file
editor="code"
# Navigation
alias ..="cd .."
alias dotfiles="${editor} $dotfile_dir"
alias aliases="${editor} $dotfile_dir/aliases.sh"
## Aliases shortcut
alias a="aliases"
alias dots="~/dotfiles"
# Terminal Navigation
alias la="ls -a" # List all in directory
alias o="open ./" # Open - in finder
alias cpr="cp -rf" # Copy recursive
alias rf="rm -rf" # Remove recursive
alias refresh="source ~/.zshrc && clear" # Refresh the terminal
alias r="refresh" # Refresh shortcut
alias t="touch" # Make file
alias ex="exit" # Exit terminal
# Home Brew
alias bri="brew install"
alias bric="brew install --cask"
alias brui="brew uninstall"
# Bun
alias bi="bun install"
alias bs="bun start"
alias bd="bun dev"
alias bb="bun build"
alias bu="bun uninstall"
# Dotfile shortcuts
alias halp="cat ~/dotfiles/aliases.sh"
alias dot="cd $dotfile_dir"
alias hotkeys="v ~/dotfiles/docs/keybinds/hotkeys.md"
alias hk="hotkeys"
# Docker
alias dcd="docker compose down"
alias dcu="docker compose up"
alias dcw="docker compose watch"
# Code editors
alias c="code ."
alias cu="cursor ."
alias v="nvim"
# Bookmarks
alias d="dotfiles"
alias p="cd ~/Documents/Projects/"
alias pp="cd /Users/devin/Documents/Projects/portfolio\ v5"
alias play="cd /Users/devin/Documents/Projects/playground"
# Git
# Overhead
alias gco="git checkout" # Git checkout
alias gcof="git checkout --" # Checkout file
alias conflicts="git diff --name-only --diff-filter=U"
alias no-edit="git commit --amend --no-edit" # Does not push
alias last="git log -1" # Show last change
alias rebase="git fetch upstream && git rebase upstream/master" # Fetch and rebase
alias gcane!="git add -A && git commit --amend --no-edit && git push -f" # Git commit ammend no edit and force push
alias grc="git rebase --continue"
alias gfu="git fetch upstream"
alias stash="git stash"
alias ga="git add ."
alias gcane="git commit --amend --no-edit"
alias diff="git diff"
alias grem="git remote"
alias gp="git push"
alias gl="git log -1"
alias conflicts="git diff --name-only --diff-filter=U"
alias gf="git fetch"
alias gb="git branch"
alias gac="git add . && git commit -m"
alias gs="git stash"
alias gfp="git fetch && git pull"
alias gm="git merge -m ':octocat:'"
alias grs="git rebase origin/staging"
alias gd="git diff"
alias undo="git reset HEAD~1"
alias sparkles="git add . && git commit -m ':sparkles: ' && git push"
alias status="git status"
alias gcm="git commit -m"
alias grm="git rebase main"
alias gr="git checkout ." # Reset a file
alias clone="git clone"
alias gc="git clone" # Calls native git clone
alias cl="git-clone" # Calls git-clone function (clone and cd)
alias gra="git remote add"
# Branch shortcuts
alias s="git checkout staging"
alias staging="gco staging"
alias m="git checkout master"
# Quick pushes
alias wip="gap ':construction:'"
alias gcat="gap ':octocat:'"
# Ghostty
alias gho="ghostty"
alias gk="ghostty +list-keybinds"
alias gkk="v ~/dotfiles/docs/keybinds/ghostty.md"
# NPM
alias nt="npm test"
alias ns="npm start"
alias nd="npm run dev"
alias nb="npm run build"
alias nw="npm run web"
alias nee="npm run test:e2e"
alias nu="npm uninstall"
alias nrd="npm run dev"
alias ni="npm install"
alias naf="npm audit fix"
alias jc="npx jest --coverage"
# PNPM
alias pns="pnpm start"
alias pnd="pnpm dev"
alias pni="pnpm install"
alias pnn="pnpm"
alias pnb="pnpm build"
alias pnr="pnpm run"
# Google docs
alias doc="python3 -mwebbrowser https://docs.google.com/create" # New google doc
alias docs="python3 -mwebbrowser http://docs.google.com" # Main docs folder
# Simple http.server
alias s="python3 -m http.server"
# Python
alias ve="source .venv/bin/activate"
alias py="python3"
# FastAPI
alias fd="fastapi dev app/main.py"
# Clean Modules (and run yarn)
alias clean="rm -rf node_modules && yarn"
# Yarn
alias y="yarn"
alias yb="yarn build"
alias yys="yarn && yarn start"
alias yc="yarn clean"
alias yd="yarn dev"
alias yr="yarn run"
alias yrd="yarn run dev"
alias ys="yarn start"
alias yd="yarn dev"
alias yb="yarn build"
alias ya="yarn add"
alias yt="yarn test"
alias yad="yarn add --dev"
alias yt="yarn test"
alias yw="yarn web"
alias e2="yarn test:e2e"
alias yl="yarn lint"
alias yn="yarn next"
alias ynb="yarn next:build"
alias yg="yarn db:generate"
alias yp="yarn db:push"
alias yfd="yarn functions:deploy"
alias ydr="yarn db:reset"
alias yfs="yarn functions:serve"
alias ydp="yarn db:push"
alias yad="yarn add -D"
alias ydg="yarn db:generate"
alias ytg="yarn test grep"
alias yi="yarn install"
# New
alias fsft="cd /Users/devin/Documents/Projects/playground/full-stack-fastapi-template"