-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzsh_mods
More file actions
executable file
·52 lines (43 loc) · 1.17 KB
/
Copy pathzsh_mods
File metadata and controls
executable file
·52 lines (43 loc) · 1.17 KB
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
export EDITOR='nvim'
export BUNDLER_EDITOR='nvim'
export PATH="$HOME/.opencode/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/bin:$HOME/clearhaus/bin:$HOME/go/bin:$PATH"
export LESS='-F -g -i -M -R -S -w -X'
export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"
autoload zmv
bindkey -e
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_DUPS
if [ -f "~/.local/bin/mise" ]; then
eval "$(~/.local/bin/mise activate zsh)"
else
eval "$(mise activate zsh)"
fi
# Alias and function definitions.
. ~/dotfiles/aliases
if [ -d ~/clearhaus ]; then
. ~/clearhaus/.secrets
. ~/clearhaus/.terraform-helpers
fi
fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
BUFFER="fg"
zle accept-line
else
zle push-input
zle clear-screen
fi
}
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add
fi
[ -x "$(command -v atuin)" ] && eval "$(atuin init zsh --disable-up-arrow)"
eval "$(zoxide init zsh)"
random () {
'cat' /dev/random | base64 | sed -E --expression 's/[^a-zA-Z0-9]//g' | tr --delete '\n' | head -c ${1:="32"}
echo
}