-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
61 lines (53 loc) · 1.34 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
# -> Starship
#: Init
if [ -f /usr/bin/zsh ]; then
eval "$(starship init zsh)"
else
eval "$(starship init bash)"
fi
# -> Environments
#: ZSH
export ZSH="$HOME/.oh-my-zsh"
#: Fastfetch
export FF="$HOME/.config/fastfetch"
# -> Settings
#: oh my zsh
CASE_SENSITIVE="true"
ENABLE_CORRECTION="true"
DISABLE_LS_COLORS="false"
DISABLE_AUTO_TITLE="false"
COMPLETION_WAITING_DOTS="false"
plugins=(
git
docker
docker-compose
emoji
httpie
zsh-completions
zsh-autosuggestions
zsh-syntax-highlighting
zsh-history-substring-search
)
# -> Imports
#: oh my zsh
source $ZSH/custom/plugins/zsh-completions/src/
source $ZSH/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source $ZSH/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $ZSH/custom/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
##: Init (oh my zsh)
source $ZSH/oh-my-zsh.sh
#: Asdf
if [ -f /opt/asdf-vm/asdf.sh ]; then
source /opt/asdf-vm/asdf.sh
fi
# -> Aliases
#: Programs
alias kn="nvim"
alias ls="eza -lha --icons=auto --sort=name --group-directories-first"
alias ff="clear && fastfetch -c $FF/layouts/normal/01/config.jsonc"
alias mf="clear && fastfetch -c $FF/layouts/mini/01/config.jsonc"
alias bat="bat --style=auto"
#: Utils
alias c="clear"
alias :q="exit"
alias grubup="sudo grub-mkconfig -o /boot/grub/grub.cfg"