Configuration files
1ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
2[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
3[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
4source "${ZINIT_HOME}/zinit.zsh"
5
6ZSH_AUTOSUGGEST_STRATEGY=(history completion)
7
8if [ -x "$(which jj)" ]; then
9 JJ_INSTALLED="$(which jj)"
10fi
11
12zinit wait lucid for \
13 atinit"zicompinit; zicdreplay" \
14 zdharma-continuum/fast-syntax-highlighting \
15 atload"_zsh_autosuggest_start" \
16 zsh-users/zsh-autosuggestions \
17 blockf atpull'zinit creinstall -q .' \
18 atload"if [ -v JJ_INSTALLED ]; then; source <(jj util completion zsh); fi" \
19 atload"if [ -v JJ_INSTALLED ]; then; source <(COMPLETE=zsh jj); fi" \
20 zsh-users/zsh-completions
21
22zinit id-as"auto" for \
23 atload"bindkey -e" \
24 "https://git.sr.ht/~kareigu/zsh-utils/blob/main/editor/editor.plugin.zsh" \
25 atload'eval "$(fzf --zsh)"' \
26 "https://git.sr.ht/~kareigu/zsh-utils/blob/main/history/history.plugin.zsh" \
27
28zstyle ':completion:*' menu yes select
29unsetopt LIST_BEEP
30
31export PATH=~/.cargo/bin/:$PATH
32export PATH=~/.zig/:$PATH
33export PATH=~/.local/bin:$PATH
34
35eval "$(starship init zsh)"
36eval "$(zoxide init zsh --cmd cd)"
37export GPG_TTY=$(tty)
38export EDITOR='emacs -nw'
39export MANPAGER="sh -c 'col -xbf | bat -p -l man'"
40
41# git
42alias gs="git status"
43alias gap="git add -p"
44alias gpl="git pull"
45alias gp="git push"
46alias gc="git commit"
47alias lzg=lazygit
48
49
50alias ls="lsd"
51alias l="ls -la"
52alias la="ls -lA"