-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc.tmpl
45 lines (36 loc) · 1.59 KB
/
dot_zshrc.tmpl
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
# TODO: https://blog.lftechnology.com/command-line-productivity-with-zsh-aliases-28b7cebfdff9
# TODO: https://github.com/broucz/dotfiles/blob/master/shell/.config/fish/config.fish
# TODO: https://github.com/twpayne/dotfiles/blob/master/private_dot_config/git/config.tmpl
# antigen
[[ ! -d "$HOME/.antigen" ]] && git clone https://github.com/zsh-users/antigen.git "$HOME/.antigen"
source "$HOME/.antigen/antigen.zsh"
antigen use oh-my-zsh
# https://github.com/djui/alias-tips
antigen bundle djui/alias-tips
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
antigen bundle git
# https://github.com/lukechilds/zsh-better-npm-completion
antigen bundle lukechilds/zsh-better-npm-completion
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/npm
antigen bundle npm
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/thefuck
antigen bundle thefuck
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/z
antigen bundle z
# https://github.com/zlsun/solarized-man
antigen bundle zlsun/solarized-man
# https://github.com/zpm-zsh/undollar
antigen bundle zpm-zsh/undollar
# https://github.com/zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-syntax-highlighting
antigen theme agnoster
antigen apply
# aliases
alias foam="code ~/leonhfr/foam"
alias weather="curl 'wttr.in/Barcelona?m'"
# list all global npm packages
alias npmg="npm list -g --depth 0"
# list all `node_modules` in a directory
alias nodels="find . -name 'node_modules' -type d -prune | xargs du -chs"
# remove all `node_modules` in a directory
alias noderm="find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +"