-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_zshrc
More file actions
80 lines (59 loc) · 1.81 KB
/
Copy pathdot_zshrc
File metadata and controls
80 lines (59 loc) · 1.81 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
# Created by newuser for 5.9
# Lines configured by zsh-newuser-install
HISTFILE="${HOME}/.zsh_history"
HISTSIZE=1000000
SAVEHIST=1000000
setopt autocd beep extendedglob nomatch notify interactive_comments
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename "${HOME}/.zshrc"
autoload -Uz compinit
compinit
# End of lines added by compinstall
###########
# Aliases #
###########
command -v nvim >/dev/null && alias vim=nvim
command -v eza >/dev/null && alias ls="eza -l --icons=auto"
###########
# Plugins #
###########
[[ -f "${HOME}/.config/zsh/plugins/fzf-tab/fzf-tab.plugin.zsh" ]] && \
source "${HOME}/.config/zsh/plugins/fzf-tab/fzf-tab.plugin.zsh"
#########
# Tools #
#########
# starship prompt
command -v starship >/dev/null && eval "$(starship init zsh)"
# Set up fzf key bindings and fuzzy completion
command -v fzf >/dev/null && source <(fzf --zsh)
# zoxide
command -v zoxide >/dev/null && eval "$(zoxide init zsh --cmd cd)"
# vivid
command -v vivid >/dev/null && export LS_COLORS="$(vivid generate one-dark)"
####################
# Completion style #
####################
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza --color --icons=auto $realpath'
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'eza --color --icons=auto $realpath'
########
# Path #
########
typeset -U path PATH
path=($HOME/.local/bin(N) $path)
export PATH
# pnpm
if [[ "${OSTYPE}" == darwin* ]]; then
export PNPM_HOME="${HOME}/Library/pnpm"
else
export PNPM_HOME="${HOME}/.local/share/pnpm"
fi
case ":${PATH}:" in
*":${PNPM_HOME}/bin:"*) ;;
*) export PATH="${PNPM_HOME}/bin:${PATH}" ;;
esac
# pnpm end