-
Notifications
You must be signed in to change notification settings - Fork 6
/
zshrc
48 lines (37 loc) · 902 Bytes
/
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
# Zplug
source $(brew --prefix zplug)/init.zsh
zplug "zsh-users/zsh-syntax-highlighting", defer:2, as:plugin
zplug "zsh-users/zsh-autosuggestions", as:plugin
zplug load
## ENV
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
eval "$(starship init zsh)"
export STARSHIP_CONFIG="$HOME/dotrc/starship/config.toml"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# deno
if (( $+commands[deno] )); then
export DENO_INSTALL=$(brew --prefix deno)
export PATH="$DENO_INSTALL:$PATH"
fi
# asdf
if (( $+commands[asdf] )); then
. $(brew --prefix asdf)/libexec/asdf.sh
fi
# work
[ -f ~/.zshrc.work ] && source ~/.zshrc.work
function update_system() {
brew update
brew upgrade
zplug update
gh ext upgrade --all
}
# Aliases
alias update=update_system
alias bws="brew search"
alias bwi="brew install"
alias ls="lsd"
alias ll="lsd -l"
alias lt="lsd --tree"
alias cat="bat"
alias vi="vim"