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=~/.zvm/bin:$PATH
33export PATH=~/.local/bin:$PATH
34
35eval "$(zoxide init zsh --cmd cd)"
36if [ -x "$(which starship)" ]; then
37 eval "$(starship init zsh)"
38else
39 echo "starship not in path"
40fi
41
42export GPG_TTY=$(tty)
43export EDITOR='emacs -nw'
44export MANPAGER="sh -c 'col -xbf | bat -p -l man'"
45
46# git
47alias gs="git status"
48alias gap="git add -p"
49alias gpl="git pull"
50alias gp="git push"
51alias gc="git commit"
52alias lzg=lazygit
53
54
55alias ls="lsd"
56alias l="ls -la"
57alias la="ls -lA"