-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.zshrc
More file actions
84 lines (71 loc) · 2.37 KB
/
.zshrc
File metadata and controls
84 lines (71 loc) · 2.37 KB
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
# ========================
# >> Environment Setup
# ========================
export EDITOR="nvim"
export MANPAGER="$EDITOR +Man!"
# Unified PATH setup
export PATH="$HOME/bin:/usr/local/bin:/home/hypr/.local/bin:/home/hypr/.cargo/bin:$HOME/.bun/bin:/home/hypr/.spicetify:$PATH"
# Cargo env
[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"
# ========================
# >> Plugins
# ========================
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/zsh-completions/zsh-completions.plugin.zsh
# ========================
# >> Tools Init
# ========================
eval "$(starship init zsh)"
eval "$(zoxide init zsh)"
eval "$(fzf --zsh)"
# bun completions
[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun"
# tdl completion
# ========================
# >> Appearance / Theme
# ========================
# History
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
HISTDUPE=erase
# zsh options
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_find_no_dups
# Freetype font rendering tweaks
export FREETYPE_PROPERTIES="truetype:interpreter-version=35 autofitter:no-stem-darkening=0 cff:no-stem-darkining=0"
zstyle ':completion:*' file-sort date
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:paths' path-completion yes
zstyle ':completion:*:processes' command 'ps -afu $USER'
zstyle ':autocomplete:*' min-input 1
zstyle ':autocomplete:*' insert-unambiguous yes
# ========================
# >> Aliases
# ========================
alias ls='exa --icons --color=always --group-directories-first'
alias v="nvim"
alias ll='exa -alF --icons --color=always --group-directories-first'
alias la='exa -a --icons --color=always --group-directories-first'
alias l='exa -F --icons --color=always --group-directories-first'
alias lf='yazi'
alias pdf='soffice --headless --convert-to pdf'
# ========================
# >> Other Exports
# ========================
export LIBVIRT_DEFAULT_URI="qemu:///system"
# ========================
# >> Optional / Commented Tools
# ========================
# ========================
export FZF_DEFAULT_OPTS='
--color=spinner:2,hl:6
--color=fg:7,header:3,info:4,pointer:4
--color=marker:2,fg+:7,prompt:6,hl+:6
'