Update .zshrc
This commit is contained in:
@@ -4,8 +4,11 @@ compinit
|
|||||||
setopt correctall
|
setopt correctall
|
||||||
|
|
||||||
autoload -U promptinit
|
autoload -U promptinit
|
||||||
promptinit; prompt gentoo
|
promptinit
|
||||||
|
|
||||||
|
{{ if eq .chezmoi.hostname "gentoo" }}
|
||||||
|
prompt gentoo
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
zstyle ':completion::complete:*' use-cache 1
|
zstyle ':completion::complete:*' use-cache 1
|
||||||
|
|
||||||
@@ -21,7 +24,6 @@ setopt hist_ignore_dups
|
|||||||
setopt appendhistory
|
setopt appendhistory
|
||||||
unsetopt beep
|
unsetopt beep
|
||||||
|
|
||||||
# zstyle :compinstall filename '/home/zam/.zshrc'
|
|
||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
alias cd='z'
|
alias cd='z'
|
||||||
@@ -29,6 +31,7 @@ alias ls='eza --icons=always'
|
|||||||
|
|
||||||
export path
|
export path
|
||||||
|
|
||||||
|
{{ if eq .chezmoi.hostname "gentoo" }}
|
||||||
type starship_zle-keymap-select >/dev/null || \
|
type starship_zle-keymap-select >/dev/null || \
|
||||||
{
|
{
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
@@ -38,5 +41,8 @@ eval "$(direnv hook zsh)"
|
|||||||
|
|
||||||
source /usr/share/zsh/site-functions/zsh-autosuggestions.zsh
|
source /usr/share/zsh/site-functions/zsh-autosuggestions.zsh
|
||||||
source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
|
||||||
|
{{ else if eq .chezmoi.os "darwin" }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
fastfetch
|
fastfetch
|
||||||
|
|||||||
Reference in New Issue
Block a user