fix zshrc conflict
This commit is contained in:
@@ -5,8 +5,18 @@ if [ "$TMUX" = "" ]; then tmux new-session -A -s default; fi
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
|
|
||||||
|
{{ if eq .chezmoi.os "darwin" }}
|
||||||
|
|
||||||
|
export COMPINIT_IGNORE_INSECURE=1
|
||||||
|
compinit -u
|
||||||
|
|
||||||
|
{{ else }}
|
||||||
|
|
||||||
compinit
|
compinit
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
setopt correctall
|
setopt correctall
|
||||||
|
|
||||||
autoload -U promptinit
|
autoload -U promptinit
|
||||||
@@ -39,8 +49,11 @@ alias ls='eza --icons=always'
|
|||||||
path+=("/home/pablu/.cargo/bin")
|
path+=("/home/pablu/.cargo/bin")
|
||||||
export PATH
|
export PATH
|
||||||
{{ else if eq .chezmoi.os "darwin" }}
|
{{ else if eq .chezmoi.os "darwin" }}
|
||||||
|
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
|
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
{{ else if eq .chezmoi.hostname "ubuntu" }}
|
{{ else if eq .chezmoi.hostname "ubuntu" }}
|
||||||
path+=("/home/ubuntu/nvim-linux-x86_64/bin")
|
path+=("/home/ubuntu/nvim-linux-x86_64/bin")
|
||||||
export PATH
|
export PATH
|
||||||
@@ -59,7 +72,6 @@ source <(COMPLETE=zsh jj)
|
|||||||
|
|
||||||
{{ else if eq .chezmoi.os "darwin" }}
|
{{ else if eq .chezmoi.os "darwin" }}
|
||||||
|
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
||||||
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
source <(kubectl completion zsh)
|
source <(kubectl completion zsh)
|
||||||
source <(kubebuilder completion zsh)
|
source <(kubebuilder completion zsh)
|
||||||
|
|||||||
Reference in New Issue
Block a user