-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
73 lines (68 loc) · 1.77 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
meow() {
local sounds=("ネコと和解せよ" "にゃー" "にゃん" "にゃーん" "にゃーお" "ごろごろ" "しゃー!")
RANDOM=$$$(date +%s)
local index=$((RANDOM % ${#sounds[@]}))
echo ${sounds[$index]}
}
alias g='git'
alias gs='git status'
alias ga='git add'
alias gc='git commit -m'
alias gcm='git commit -m "$(meow)"'
alias gcl='git clone'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcom='git checkout main'
alias gcod='git checkout develop'
alias gcuh='git config --unset core.hooksPath'
alias gd='git diff'
alias gf='git fetch'
alias gs='git status'
alias gst='git stash'
alias gstl='git stash list'
alias gsta='git stash apply'
alias gstp='git stash pop'
alias gbr='git branch'
alias ghb='gh browse'
alias ghrc='gh repo create'
alias ghist='git log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short'
alias gl='git log'
alias gt='git cat-file -t'
alias gd='git cat-file -p'
alias gp='git push'
alias gpd='git pull origin develop'
alias gph='git push origin HEAD'
alias gpm='git pull origin main'
alias grsh='git reset --soft HEAD^'
alias grmh='git reset --mixed HEAD^'
alias grhh='git reset --hard HEAD^'
alias d='docker'
alias dc='docker compose'
alias dc='docker compose'
alias dcb='docker compose build'
alias dcd='docker compose down'
alias dce='docker compose exec'
alias dcu='docker compose up -d'
alias dcr='docker compose restart'
alias dcp='docker compose ps'
alias b='bun'
alias br='bun run'
alias m='make'
alias o='open'
alias r='source ~/.zshrc'
alias n='npm'
alias q='exit'
alias v='code'
alias y='yarn'
alias yd='yarn dev'
alias yb='yarn build'
alias ba='bun add'
alias bb='bun run build'
alias bd='bun dev'
alias bi='bun install'
alias bu='bun remove'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
PS1='%~ %# '
export PS1