-
Notifications
You must be signed in to change notification settings - Fork 0
/
my-alias.zsh
58 lines (50 loc) · 1.47 KB
/
my-alias.zsh
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
# ls
alias l='ls -Flh'
alias ll='ls -Flha'
# verbose
alias mkdir='mkdir -v'
alias rmdir='rmdir -v'
alias cl='clear'
alias ex='exit'
# git
alias gs='git status -s'
alias gS='git status'
alias gc='git commit -m'
alias gac='git add . && git commit -m'
alias gcdp='git checkout $(git_develop_branch) && git pull origin $(git_develop_branch)'
alias gcmp='git checkout $(git_main_branch) && git pull origin $(git_main_branch)'
alias gl='git log --graph --stat --oneline --decorate --source --pretty=format:"%Cblue %h %C(bold red)- <%an> -%C(green) (%ar)%C(auto)%d%n%C(yellow) %s"'
alias gla='git log --all --graph --stat --oneline --decorate --source --pretty=format:"%Cblue %h %C(bold red)- <%an> -%C(green) (%ar)%C(auto)%d%n%C(yellow) %s"'
alias lz="lazygit"
# tmux
# alias tmux='tmux -f $HOME/.config/tmux/tmux.conf'
alias t='tmux'
alias ta='tmux attach'
alias trw='tmux rename-window'
alias trs='tmux rename-session'
# nvim
alias nv='nvim'
alias v='vim'
# npm
alias ni='npm install'
alias ns='npm start'
alias nt='npm test'
alias nb='npm build'
alias nr='npm run'
alias nrd='nr dev'
# yarn
alias ya='yarn add'
alias yi='yarn install'
alias yad='yarn add -D'
alias ys='yarn start'
alias yt='yarn test'
alias yb='yarn build'
alias yd='yarn dev'
alias yr='yarn remove'
# docker
alias dcu='docker-compose up'
alias dcub='docker-compose up --build'
alias dcd='docker-compose up -d'
# command script shell
alias ide='~/.script-bash/.ide.sh'
alias dfs='~/.script-bash/.attach-nvim.sh Dotfile'