blob: 23d0299da186205e20b49d9786aef17a46067fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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)"
|