+# zmodload zsh/zprof
# Source alias
[ -f $XDG_CONFIG_HOME/shell/aliasrc ] && . $XDG_CONFIG_HOME/shell/aliasrc
-# Enable colors and change prompt:
-autoload -U colors && colors # Load colors
-PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
+# # Enable colors and change prompt:
+# autoload -U colors && colors # Load colors
+# PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
stty stop undef # Disable ctrl-s to freeze terminal.
# Basic auto/tab complete:
-autoload -U compinit
+autoload -Uz compinit
+for dump in $ZDOTDIR/.zcompdump(N.mh+24); do
+ compinit
+done
+compinit -C
zstyle ':completion:*' menu select
-zmodload zsh/complist
-compinit
+# zmodload zsh/complist
_comp_options+=(globdots) # Include hidden files.
+# # Basic auto/tab complete:
+# autoload -U compinit
+# zstyle ':completion:*' menu select
+# zmodload zsh/complist
+# compinit
+# _comp_options+=(globdots) # Include hidden files.
+
# vi mode
# bindkey -v
# export KEYTIMEOUT=1
# preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
-# Git prompt
-autoload -Uz vcs_info
-precmd_vcs_info() { vcs_info }
-precmd_functions+=( precmd_vcs_info )
-setopt prompt_subst
-RPROMPT=\$vcs_info_msg_0_
-zstyle ':vcs_info:git:*' formats '%b'
-# zstyle ':vcs_info:*' enable git
+# # Git prompt
+# autoload -Uz vcs_info
+# precmd_vcs_info() { vcs_info }
+# precmd_functions+=( precmd_vcs_info )
+# setopt prompt_subst
+# RPROMPT=\$vcs_info_msg_0_
+# zstyle ':vcs_info:git:*' formats '%b'
+# # zstyle ':vcs_info:*' enable git
# https://github.com/softmoth/zsh-vim-mode
# . $ZDOTDIR/plugins/zsh-vim-mode.plugin.zsh
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
+. /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
+bindkey '^ ' autosuggest-accept
+
# Should be last
-. $ZDOTDIR/zsh-vi-mode/zsh-vi-mode.plugin.zsh
-. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
+# . $ZDOTDIR/zsh-vi-mode/zsh-vi-mode.plugin.zsh
+. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+. /usr/share/zsh/plugins/zsh-vi-mode/zsh-vi-mode.zsh
-fpath=($ZDOTDIR/zsh-completions/src $fpath)
+# fpath=($ZDOTDIR/zsh-completions/src $fpath)
-# eval "$(starship init zsh)"
+eval "$(starship init zsh)"
+# zprof