blob: 9194dd1b9754be4d78e7b397470bf6ab7988bd12 (
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
50
51
52
53
54
55
|
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
export PATH="$HOME/.cargo/bin:$PATH"
# 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
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
eval "$(zoxide init zsh)"
bindkey -e
# if [[ -z "$TMUX" ]]; then
# tmux attach-session -t default \; new-window && exit || tmux new-session -s default && exit
# fi
|