-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
752 lines (627 loc) · 20.4 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
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
# --------------------------------
# 1. oh-my-zsh default settings
# --------------------------------
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/usr/local/sbin:$PATH"
# Path to your oh-my-zsh installation.
export ZSH="/Users/escape/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# ZSH_THEME="af-magic"
# ZSH_THEME="powerlevel10k/powerlevel10k"
ZSH_THEME="spaceship"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work)
# See https://github.com/ohmyzsh/ohmyzsh/issues/5765
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="false"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
pip
sudo
autojump
jsontools
web-search
zsh-syntax-highlighting
zsh-autosuggestions
zsh-completions
history-substring-search
colored-man-pages
python
poetry
# git
# npm
# vagrant
# docker
# docker-compose
# kubectl
# helm
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# --------------------------------
# 2. beautiful oh-my-zsh config
# --------------------------------
# set terminal env
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_TIME="en_US.UTF-8"
export LC_NAME="en_US.UTF-8"
export LC_ADDRESS="en_US.UTF-8"
# set autojump completions
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
# set autoenv completions
source $(brew --prefix autoenv)/activate.sh
# set nvm completions
# export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# set docker-compose completions
# autoload -Uz compinit && compinit -i
# fpath=(~/.zsh/completion $fpath)
# set k8s autocompletion
source <(kubectl completion zsh)
complete -F __start_kubectl k
# set k3s/k3d completion
source <(k3d completion zsh)
# set vagrant completions
# fpath=(/opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/contrib/zsh $fpath)
# compinit
# set pyenv home path completions
# /usr/local/lib/python3.8/site-packages
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# set pipenv complete
export PIPENV_PYPI_MIRROR=https://mirrors.aliyun.com/pypi/simple/
eval "$(pipenv --completion)"
# set pipx complete
autoload -U bashcompinit
bashcompinit
eval "$(register-python-argcomplete pipx)"
# set tmuxp completions
export DISABLE_AUTO_TITLE="true"
eval "$(_TMUXP_COMPLETE=source_zsh tmuxp)"
# set procs completion
source <(procs --completion-out bash)
# set z completion
eval "$(zoxide init zsh)"
# set thefuck completions
eval $(thefuck --alias)
# set gh completions
# eval "$(gh completion -s zsh)"
# --------------------------------
# 3. set open tools path
# --------------------------------
# set pyenv openssl lib path
# CONFIGURE_OPTS="--with-openssl=$(brew --prefix [email protected])" pyenv install 3.7.0
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
# set node18 path for hexo(node@18)
export PATH="/usr/local/opt/node@18/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/node@18/lib"
export CPPFLAGS="-I/usr/local/opt/node@18/include"
# set spacevim path
export PATH="$PATH:/Users/escape/Library/Python/2.7/bin"
# set pipx user path
export PATH="$PATH:/Users/escape/.local/bin"
# set code path
export PATH="$PATH:/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
# set poetry path
export PATH="$PATH:/Users/escape/.poetry/bin"
# tailscale
export PATH="$PATH:/Users/escape/go/bin"
# iterm
# test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# --------------------------------
# 4. setting server alias
# --------------------------------
# set escape pc alias
# alias myhome="ssh -p 22 [email protected]"
# alias mywork="ssh -p 22 [email protected]"
# set xpanes server
alias centos="xpanes -c 'echo {}; {}' c1 c2 c3 c4"
alias ubuntu="xpanes -c 'echo {}; {}' c5 c6 c7 c8"
# --------------------------------
# 5. setting system alias
# --------------------------------
# set vim alias
alias vi="nvim"
alias vim="nvim"
# set his alias
alias h="history"
alias his="history | fzf"
alias hgp="history | grep"
alias hgpi="history | grep -i"
# set shell alias
alias ..="z .."
alias ...="z ../.."
alias ....="z ../../.."
alias cd..="z .."
alias cd...="z ../.."
alias cd....="z ../../.."
alias ls="exa"
alias lr="ls -tRFh"
alias lt="ls -ltFh"
alias rm="rmtrash"
alias watch="watch -n 3 -c"
# --------------------------------
# 6. setting escape alias
# --------------------------------
# set config alias
alias config="vim ~/.zshrc"
alias reload="source ~/.zshrc"
alias confrg="cat ~/.zshrc | rg"
# set globl ss config
alias runproxy="export http_proxy=http://127.0.0.1:7890 https_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890"
alias disproxy="unset http_proxy https_proxy all_proxy"
# set network alias
alias mtr="mtr"
alias curl="httpie"
alias bench="bench"
alias ip="\curl cip.cc"
alias speedn="disproxy; ~/speedtest-cn-cli"
alias speedw="runproxy; ~/speedtest-cn-cli"
alias sshopen="sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist"
alias sshclose="sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist"
alias sshstatus="sudo launchctl list | grep sshd"
# set tools alias
alias mac="m"
alias cmd="tldr"
alias get="you-get"
alias app="nativefier"
alias md2doc="pandoc"
alias weather="\curl wttr.in"
alias weather2="\curl v2.wttr.in/beijing"
alias ppt="npm init slidev@latest"
alias wtf="runproxy; ~/Fuckcode/Github/DotFiles/tools/wtf/wtf"
alias virtualre="sudo '/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh' restart; sudo kextload -b org.virtualbox.kext.VBoxDrv"
# set show info alias
alias du="duf"
alias cat="bat"
alias find="fd"
alias grep="rg"
alias htop="htop"
alias ctop="ctop"
alias gtop="gtop"
alias glances="glances"
alias timeit="hyperfine"
alias ping="~/Tools/prettyping"
alias lzd="lazydocker"
alias zd="autoload -U compinit && compinit"
# set cache alias
alias mcache="sudo purge"
alias ucache="sync && echo 3 | sudo tee /proc/sys/vm/drop_caches"
alias installapp="sudo xattr -r -d com.apple.quarantine"
# set tailscaled alias
alias tailinstall="sudo tailscaled install-system-daemon"
alias tailuninstall="sudo tailscaled uninstall-system-daemon"
alias tailus="tailscale status"
alias tailcp="tailscale file cp"
alias tailnet="tailscale netcheck"
alias taillogin="sudo tailscale up --login-server https://xxx --operator=$(whoami)"
alias tailup="tailscale up --hostname=macos --login-server https://xxx"
# set search alias
alias sb="bing"
alias sg="google"
alias sh="github"
# --------------------------------
# 7. setting git alias
# --------------------------------
# set git alias
alias g="git"
alias git="LANG=en_US git"
alias gpl="git pull --all"
alias gfe="git fetch --all"
alias gps="git pull -r; git push"
# set git add alias
alias gi="git init"
alias gc="GIT_LFS_SKIP_SMUDGE=1 git clone"
alias gc1="GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1"
alias gcs="GIT_LFS_SKIP_SMUDGE=1 git clone --recursive"
alias gs="git status"
alias gss="git status -s"
alias ga="git add"
alias gaa="git add --all"
# set git repo alias
alias grm="git rm"
alias grmc="git rm --cached"
# set git commit alias
alias gam="git am"
alias gcm="git commit -m"
alias gcv="git commit -v"
alias gcrc="git commit --amend"
alias gcam="git commit -a -m"
# set git diff alias
alias gd="git diff"
alias gdc="git diff --cached"
alias gds="git diff --staged"
alias gdH="git diff HEAD"
alias gdt="git diff-tree --no-commit-id --name-only -r"
alias gdw="git diff --word-diff"
alias gdf="git diff --name-status"
alias gds="git diff --cached --submodule"
alias gdn="git diff --name-only"
alias gbl="git blame -b -w"
alias gcount="git shortlog -sn"
# set git branch alias
alias gb="git branch"
alias gba="git branch -a"
alias gbd="git branch -d"
alias gbD="git branch -D"
alias gbr="git branch --remote"
alias gco="git checkout"
alias gcb="git checkout -b"
# set git reset alias
alias grc="git checkout --"
alias grH="git reset HEAD"
alias grh="git reset --hard"
alias grs="git reset --soft"
alias grp="git reset --hard HEAD^ && git push origin master -f"
alias grv="git revert"
alias gres="git restore --staged"
# set git clean alias
alias gcf="git clean -f"
alias gcd="git clean -fd"
# set git merge alias
alias gm="git merge"
alias gmpf="git config pull.rebase false"
alias gmpt="git config pull.rebase true"
alias gmpo="git config pull.ff only"
alias gmnf="git merge --no-ff"
alias gre="git rebase"
alias grei="git rebase -i"
alias gcp="git cherry-pick -x"
# set git log alias
alias gl="git log"
alias glp="git log -p"
alias gls="git log --stat"
alias glsp="git log --stat -p"
alias glps="git log -p --submodule"
alias gldf="git log --"
alias gldfs="git log --stat --"
alias gldfh="git log --full-history --"
alias glda="git log --diff-filter=D --summary"
alias gla="git log --graph --decorate --pretty=oneline --abbrev-commit --all"
alias glo="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
# set git lfs alias
alias gfs="git lfs"
alias gfse="git lfs env"
alias gfsi="git lfs install"
alias gfsl="git lfs ls-files"
alias gfsa="git lfs track"
alias gfsd="git lfs untrack"
alias gfsm="git lfs migrate"
alias gfss="git lfs status"
alias gfsu="git lfs update"
alias gfsf="git lfs fetch"
alias gfspl="git lfs pull"
alias gfsps="git lfs push"
alias gfspsn="git push --no-verify backup master"
# set git show alias
alias glf="git ls-files"
alias glfs="git ls-files -s"
alias gcat="git cat-file"
alias gcatt="git cat-file -t"
alias gcatp="git cat-file -p"
alias gcats="git cat-file -s"
# set git statsh alias
alias gst="git stash"
alias gsts="git stash save"
alias gsta="git stash apply"
alias gstp="git stash pop"
alias gstd="git stash drop"
alias gstl="git stash list"
alias gstc="git stash clear"
# set git worktree alias
alias gwta="git worktree add"
alias gwtl="git worktree list"
alias gwtr="git worktree remove"
alias gwtm="git worktree move"
alias gwtp="git worktree prune"
alias gwtk="git worktree lock"
alias gwtu="git worktree unlock"
# set git submodule alias
alias gsa="git submodule add"
alias gsi="git submodule init"
alias gsu="git submodule update"
alias gsp="git submodule update --remote --merge"
alias gsload="git submodule update --init --recursive; git submodule update --recursive"
# set git tag alias
alias gt="git tag"
alias gta="git tag -a"
alias gts="git tag -s"
alias gtd="git tag -d"
alias gsh="git show"
alias gtv="git tag | sort -V"
alias gtp="git push origin"
alias gtpa="git push origin --tags"
# set git remote alias
alias gru="git remote"
alias gruv="git remote -v"
alias grua="git remote add upstream"
# set git escape alias
alias gcmm="git cz"
alias gcl="git config --list"
alias gpushw="gaa; gcm 'One Fine Day'; gps"
alias gname="git config user.name 'xxx'"
alias gemail="git config user.email '[email protected]'"
# --------------------------------
# 8. setting docker alias
# --------------------------------
# set docker alias
alias docker="sudo k3s crictl"
alias dockerps="sudo k3s crictl ps -a"
alias dockerst="sudo k3s crictl stats"
alias dockerka="sudo k3s crictl ps -a -q | xargs sudo k3s crictl rm -f"
# set kubectl alias
alias k="sudo kubectl"
# set kubectl create alias
alias kaf="sudo kubectl apply -f"
alias kcf="sudo kubectl create -f"
# set kubectl get alias
alias kg="sudo kubectl get"
alias kga="sudo kubectl get addon -A"
alias kgs="sudo kubectl get secret"
alias kgv="sudo kubectl get storageclass"
alias kgn="sudo kubectl get nodes"
alias kgd="sudo kubectl get deployment"
alias kgns="sudo kubectl get ns"
alias kgpv="sudo kubectl get pv"
alias kgpvc="sudo kubectl get pvc"
alias kgp="sudo kubectl get pods -A"
alias kgpw="sudo kubectl get pods -o wide"
# set kubectl delete alias
alias kd="sudo kubectl delete"
alias kdf="sudo kubectl delete -f"
alias kdn="sudo kubectl delete ns"
alias kdp="sudo kubectl delete pods"
alias kds="sudo kubectl delete service"
alias kdd="sudo kubectl delete deployment"
alias kds="sudo kubectl delete secret"
# set kubectl explain alias
alias ke="sudo kubectl explain"
alias kep="sudo kubectl explain pods"
alias kesvc="sudo kubectl explain svc"
alias kens="sudo kubectl explain ns"
# set kubectl other alias
alias kv="sudo kubectl edit"
alias kex="sudo kubectl exec"
alias kl="sudo kubectl logs"
alias klf="sudo kubectl logs -f"
alias kcv="sudo kubectl config view"
# set docker-compose alias
alias docker-compose="docker compose"
alias dco="docker-compose"
alias dcb="docker-compose build"
alias dce="docker-compose exec"
alias dcps="docker-compose ps"
alias dcrestart="docker-compose restart"
alias dcrm="docker-compose rm"
alias dcr="docker-compose run"
alias dcstop="docker-compose stop"
alias dcup="docker-compose up"
alias dcupb="docker-compose up --build"
alias dcupd="docker-compose up -d"
alias dcdn="docker-compose down"
alias dcl="docker-compose logs"
alias dclf="docker-compose logs -f"
alias dcpull="docker-compose pull"
alias dcstart="docker-compose start"
alias dck="docker-compose kill"
# --------------------------------
# 9. setting vagrant alias
# --------------------------------
# set vagrant run
alias vg="vagrant"
alias vgi="vagrant init"
alias vgu="vagrant up"
alias vgh="vagrant halt"
alias vgd="vagrant destroy"
alias vgdf="vagrant destroy -f"
alias vgsu="vagrant suspend"
alias vgre="vagrant resume"
alias vgr="vagrant reload"
alias vgrp="vagrant reload --provision"
# set vagrant ssh
alias vgssh="vagrant ssh"
alias vgsshc="vagrant ssh-config"
alias vgrdp="vagrant rdp"
# set vagrant status
alias vgs="vagrant status"
alias vgsg="vagrant global-status"
alias vgre="vagrant resume"
alias vgpr="vagrant provision"
alias vgp="vagrant push"
alias vgsh="vagrant share"
# set vagrant box alias
alias vgbl="vagrant box list"
alias vgba="vagrant box add"
alias vgbr="vagrant box remove"
alias vgbu="vagrant box update"
alias vgbo="vagrant box outdated"
# set vagrant plugin alias
alias vgpl="vagrant plugin list"
alias vgpu="vagrant plugin update"
alias vgpi="vagrant plugin install"
alias vgpd="vagrant plugin uninstall"
# set vagrant snapshot alias
alias vgkl="vagrant snapshot list"
alias vgks="vagrant snapshot save"
alias vgkr="vagrant snapshot restore"
alias vgkd="vagrant snapshot delete"
alias vgki="vagrant snapshot push"
alias vgko="vagrant snapshot pop"
# --------------------------------
# 10. setting tmux alias
# --------------------------------
# set tmux alias
alias t="tmux"
alias tml="tmux ls"
alias tms="tmux new -s"
alias tma="tmux a -t"
alias tmk="tmux kill-session -t"
alias tmka="tmux kill-server"
# set tmuxp alias
alias tpt="tmuxp load test"
alias tpa="tmuxp load aws"
# --------------------------------
# 11. setting pyenv alias
# --------------------------------
alias py="pyenv"
alias pyi="pyenv install"
alias pyu="pyenv uninstall"
alias pyl="pyenv local"
alias pys="pyenv versions"
alias pyv="pyenv virtualenv"
alias pym="pyenv migrate"
alias pyup="pyenv update"
alias pyinit="pip install flake8 yapf autoflake isort neovim jedi ipython requests"
# --------------------------------
# 12. setting pip alias
# --------------------------------
# set pip alias
alias p="pip"
alias pi="pip install"
alias piu="pip install --user"
alias pu="pip uninstall"
alias pl="pip list --format=columns"
alias pp="pip install --upgrade pip"
# set pip3 alias
alias p3="pip3"
alias p3i="pip3 install"
alias p3iu="pip3 install --user"
alias p3u="pip3 uninstall"
alias p3l="pip3 list --format=columns"
alias p3p="pip3 install --upgrade pip"
# --------------------------------
# 13. setting database alias
# --------------------------------
# set redis cli alias
alias rd="iredis"
# set mysql cli alias
alias my="mycli"
# set postgres cli alias
alias pg="pgcli"
# --------------------------------
# 14. setting yadm alias
# --------------------------------
alias y="yadm"
alias yi="yadm init"
alias ys="yadm status"
alias ya="yadm add"
alias ycm="yadm commit -m"
alias ypl="yadm pull"
alias yps="yadm push"
# --------------------------------
# 15. setting hexo alias
# --------------------------------
# npm install -g npm-check npm-upgrade
# npm-upgrade && npm install --save
alias hi="hexo init"
alias hn="hexo new"
alias hc="hexo clean"
alias hd="hexo g -d"
alias hs="hexo server"
alias hcs="hexo clean && hexo server"
# --------------------------------
# 16. setting brew alias
# --------------------------------
alias b="brew"
alias bi="brew install"
alias bu="brew uninstall"
alias bl="brew list"
alias bp="brew update"
alias bs="brew search"
alias bri="brew reinstall"
alias bif="brew info"
alias blk="brew link"
# --------------------------------
# 17. setting npm alias
# --------------------------------
alias npmg="npm i -g"
alias npml="npm list"
alias npml0="npm ls --depth=0"
alias npmi="npm init"
alias npmr="npm run"
alias npms="npm start"
alias npmp="npm publish"
alias npmS="npm i -S"
alias npmD="npm i -D"
alias npmv="npm -v"
# --------------------------------
# 18. setting remote tools alias
# --------------------------------
alias todesku="sudo systemctl start todeskd.service"
alias todeskd="sudo systemctl stop todeskd.service"
alias todesks="sudo systemctl status todeskd.service"
alias todeskr="sudo systemctl restart todeskd.service"
alias anydesku="sudo systemctl start anydesk.service"
alias anydeskd="sudo systemctl stop anydesk.service"
alias anydesks="sudo systemctl status anydesk.service"
alias anydeskr="sudo systemctl restart anydesk.service"