-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc.tmpl
84 lines (62 loc) · 1.63 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
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
# ---------------------
# Per-OS Config
# ---------------------
{{ if eq .chezmoi.os "darwin" }}
# darwin
export ZSH="/Users/iwa/.oh-my-zsh"
## Starship
export STARSHIP_CONFIG="/Users/iwa/.starship.toml"
eval "$(starship init zsh)"
## Compilation flags for mac arm
export ARCHFLAGS="-arch arm64"
## alias macOS
alias flush-dns="sudo killall -HUP mDNSResponder; echo \"dns cleared successfully\" "
alias python=/usr/bin/python3
alias pip=/usr/bin/pip3
alias webdl=/Users/iwa/.scripts/webdl.sh
## jenv
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
## bun completions
[ -s "/Users/iwa/.bun/_bun" ] && source "/Users/iwa/.bun/_bun"
## bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
## google cli
alias gam-kubic="/Users/iwa/bin/gam-kubic/gam"
alias gam-carre="/Users/iwa/bin/gam-carre/gam"
alias gam="/Users/iwa/bin/gam/gam"
## load Angular CLI autocompletion
source <(ng completion script)
{{ else if eq .chezmoi.os "linux" }}
# linux
export TERM=xterm-256color
export ZSH="$HOME/.oh-my-zsh"
## Compilation flags
export ARCHFLAGS="-arch x86_64"
## Aliases
alias ls='exa'
alias ll='exa -l'
alias la='exa -la'
alias df='duf'
# alias cat='bat'
alias t='tmux'
{{ end }}
# ---------------
# Zsh Plugins
plugins=(zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# You may need to manually set your language environment
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Editor
export EDITOR="nano"
# Style
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#808080"
# Global alias
alias lg="lazygit"
alias mp="multipass"
alias cat="bat"
#alias diff="difftastic"
alias x="exit"