@@ -3,36 +3,42 @@ alias docker="podman"
3
3
alias mux=" tmuxinator"
4
4
5
5
export EDITOR=" nvim"
6
+ export NVM_AUTO_USE=true
6
7
7
8
if [ -d " /home/linuxbrew" ]; then
8
9
eval " $( /home/linuxbrew/.linuxbrew/bin/brew shellenv) "
9
10
fi
10
11
11
- export NVM_DIR=" $HOME /.nvm"
12
- [ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh"
13
- [ -s " $NVM_DIR /bash_completion" ] && \. " $NVM_DIR /bash_completion"
12
+ export ZPLUG_HOME=/usr/local/opt/zplug
13
+ source $ZPLUG_HOME /init.zsh
14
+
15
+ zplug " zsh-users/zsh-history-substring-search"
16
+ zplug " zsh-users/zsh-syntax-highlighting" , defer:2
17
+ zplug " catppuccin/zsh-syntax-highlighting" , use:themes/catppuccin_mocha-zsh-syntax-highlighting.zsh
18
+ zplug " jeffreytse/zsh-vi-mode"
19
+ zplug " mafredri/zsh-async"
20
+ zplug " sindresorhus/pure" , use:pure.zsh, as:theme
21
+ zplug " p-m-p/pure-catppuccin" , use:theme.zsh
22
+ zplug " lukechilds/zsh-nvm"
23
+
24
+ if ! zplug check --verbose; then
25
+ printf " Install? [y/N]: "
26
+ if read -q; then
27
+ echo ; zplug install
28
+ fi
29
+ fi
14
30
15
- autoload -U add-zsh-hook
16
- load-nvmrc () {
17
- local nvmrc_path=" $( nvm_find_nvmrc) "
31
+ zplug load
18
32
19
- if [ -n " $nvmrc_path " ]; then
20
- local nvmrc_node_version=$( nvm version " $( cat " ${nvmrc_path} " ) " )
21
-
22
- if [ " $nvmrc_node_version " = " N/A" ]; then
23
- nvm install
24
- elif [ " $nvmrc_node_version " != " $( nvm version) " ]; then
25
- nvm use
26
- fi
27
- elif [ -n " $( PWD=$OLDPWD nvm_find_nvmrc) " ] && [ " $( nvm version) " != " $( nvm version default) " ]; then
28
- echo " Reverting to nvm default version"
29
- nvm use default
30
- fi
31
- }
32
- add-zsh-hook chpwd load-nvmrc
33
- load-nvmrc
33
+ bindkey ' ^[[A' history-substring-search-up
34
+ bindkey ' ^[[B' history-substring-search-down
34
35
35
36
export SDKMAN_DIR=$( brew --prefix sdkman-cli) /libexec
36
37
[[ -s " ${SDKMAN_DIR} /bin/sdkman-init.sh" ]] && source " ${SDKMAN_DIR} /bin/sdkman-init.sh"
37
38
38
- eval " $( starship init zsh) "
39
+ # pnpm
40
+ export PNPM_HOME=" /Users/philparsons/Library/pnpm"
41
+ export PATH=" $PNPM_HOME :$PATH "
42
+ # pnpm end
43
+
44
+ [ -f ~ /.fzf.zsh ] && source ~ /.fzf.zsh
0 commit comments