This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
51 lines (37 loc) · 1.36 KB
/
.zshrc
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
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
zstyle ':completion:*' squeeze-slashes true
zstyle :compinstall filename '/home/chandler/.zshrc'
autoload -Uz compinit
compinit
HISTFILE=~/.histfile
HISTSIZE=1000000
SAVEHIST=1000000
# uncomment for vim keybindings
#bindkey -v
bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# https://stackoverflow.com/a/38980986
#export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export EDITOR=vim
for dir in $HOME/.local/bin $HOME/bin $HOME/.local/share/go/bin; do
[ -d $dir ] && export PATH=$dir:$PATH
done
# https://wiki.archlinux.org/index.php/Zsh#Prompts
export PROMPT="%(?..%F{red}[%?]%f )%F{green}%n%f@%F{magenta}%m%f %F{blue}%B%~%b%f %# "
export RPROMPT='[%F{yellow}%*%f]'
# Allow running `pipenv` from directories below the root-2.
export PIPENV_MAX_DEPTH=10
export PIPENV_HIDE_EMOJIS=true
if [ -f ~/.config/zsh/by_hostname/`hostname`.sh ]; then
source ~/.config/zsh/by_hostname/`hostname`.sh
fi
if [ -f ~/.config/zsh/private/zsh ]; then
source ~/.config/zsh/private/zsh
fi
source ~/.config/zsh/search
export EDITOR=vim
alias ls="ls --color=auto"
command -v atuin >/dev/null && eval "$(atuin init --disable-up-arrow zsh)"