-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
54 lines (45 loc) · 1.25 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
# starship
eval "$(starship init zsh)"
export GO111MODULE=on
# autosuggestion
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# nodenv
eval "$(nodenv init -)"
# alias
## system
alias v='vim'
alias e='exit'
alias sz='source ~/.zshrc'
alias ..1='cd ../'
alias ..2='cd ../../'
alias ..3='cd ../../../'
alias c='code .'
alias i='idea .'
## package
alias y='yarn'
alias yi='yarn install'
alias ya='yarn add'
alias n='npm'
alias ni='npm install'
## git
alias g='git'
alias gs='git status'
alias gc='git checkout'
alias gp='git push origin $(git rev-parse --abbrev-ref HEAD)'
alias gl='git pull origin $(git rev-parse --abbrev-ref HEAD)'
alias glm='git pull origin master 2>/dev/null || git pull origin main 2>/dev/null'
alias gf='git fetch'
alias t='tig'
alias gm='git mergetool -t vimdiff'
## docker
alias dp='docker ps'
alias dcu='docker-compose up -d'
alias dcd='docker-compose down --volumes'
alias dce='docker-compose exec'
## atcoder
alias at='(){mkdir $1 && cd $1 && oj-prepare https://atcoder.jp/contests/$1}'
alias att='oj t -c "python3 main.py"'
alias atte='oj t -e 1e-6 -c "python3 main.py"'
alias atg='oj generate-input "python3 generate.py"'
alias ats='oj s -y --guess-python-interpreter pypy main.py'
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"