-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
49 lines (43 loc) · 1001 Bytes
/
.zshrc
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
# ZSH CONFIG
export ZSH="${HOME}/.oh-my-zsh"
ZSH_THEME="half-life"
plugins=(git)
source $ZSH/oh-my-zsh.sh
# ENV SETUP
export PATH=/opt/homebrew/bin:$PATH
# CUSTOM COMMANDS
current_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
gpoc() {
cmd="git push origin `current_branch`"
echo "Executing command..."
echo "$cmd"
eval $cmd
}
gpoc-f() {
cmd="git push origin `current_branch` -f"
echo "Executing command..."
echo "$cmd"
eval $cmd
}
# ALIASES
alias gsl="git stash list"
alias gaa="git add --all"
alias gap="git add --patch"
alias gca="git commit --amend"
alias gcm="git commit -m"
alias gst="git status"
alias gdf="git diff"
alias gbr="git branch"
alias glo="git log --oneline"
alias gdb="git branch -D"
alias grm="git rebase main"
alias gco="git checkout"
alias gpo="git push origin"
alias c="clear"
# WORK ALIASES
alias watch="make unit-test-watch"
alias types="make generate-types"
alias run="make dev-start-web"
alias story="make dev-storybook"