From a623fed63460d6d810605ce1ce858a58a5b222f7 Mon Sep 17 00:00:00 2001 From: Sakamoto Date: Tue, 12 May 2026 18:31:15 -0500 Subject: init --- dot_zshrc | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 dot_zshrc (limited to 'dot_zshrc') diff --git a/dot_zshrc b/dot_zshrc new file mode 100644 index 0000000..23d0299 --- /dev/null +++ b/dot_zshrc @@ -0,0 +1,49 @@ +HISTFILE=~/.zsh_history +HISTSIZE=10000 +SAVEHIST=10000 +setopt APPEND_HISTORY +setopt EXTENDED_HISTORY +setopt INC_APPEND_HISTORY +setopt SHARE_HISTORY + +export EDITOR="nvim" +export PASSWORD_STORE_CLIP_TIME=10 + +precmd () { + echo -n -e "\a" +} + +export PATH=$PATH:~/.local/bin + +# zstyle ':completion:*' menu select + +autoload -Uz vcs_info +precmd() { vcs_info } + +zstyle ':vcs_info:git:*' formats '%b ' + +setopt PROMPT_SUBST +PROMPT='%(?.%F{green}.%F{red})➜ %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f' + +source ~/.aliases + +# carapace +autoload -U compinit && compinit +export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional +zstyle ':completion:*' menu select format $'\e[2;37mCompleting %d\e[m' +source <(carapace _carapace) + +# Start ssh-agent if not already running +if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent > ~/.ssh/ssh-agent.env +fi +if [[ -f ~/.ssh/ssh-agent.env ]]; then + . ~/.ssh/ssh-agent.env > /dev/null +fi +ssh-add -l &> /dev/null || ssh-add + +# Home and End Key Bindings +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line + +eval "$(zoxide init zsh)" -- cgit v1.2.3