-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
71 lines (56 loc) · 2.02 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt extendedglob
setopt nomatch
setopt notify
setopt auto_cd
#setopt share_history
setopt extended_history
setopt hist_ignore_dups
setopt hist_ignore_space
setopt interactivecomments
unsetopt beep # No beeping
bindkey -e # Emacs/readline keybindings
export PATH=~/bin:$PATH
export EDITOR=vim
export VISUAL=vim
export PATH=~/.local/bin:~/.cargo/bin:$PATH
export VIRTUALENVWRAPPER_PYTHON=python3
alias ll='ls -lh --color=always'
alias la='ls -lah --color=always'
alias dotfile='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# Completions
autoload -Uz compinit
compinit
zmodload zsh/complist
unsetopt menu_complete # Don't autoselect first completion
setopt auto_menu # Open menu completion after pressing tab a few times
setopt always_to_end
zstyle ':completion:*' menu select
zstyle ':completion:*' group-name ''
zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
zstyle ':completion:*:sudo:*' command-path /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin
zstyle ':completion:*:manuals' separate-sections true
zstyle ':completion:*:manuals.*' insert-sections true
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
# Plugins
source ~/bin/antigen.zsh
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-history-substring-search
antigen bundle zsh-users/zsh-syntax-highlighting
antigen apply
# Source host-specific config files
if [[ -f ~/.config/zsh/.zshrc.$(hostname -s) ]]; then
source ~/.config/zsh/.zshrc.$(hostname -s)
fi
# Attach to tmux session if we're not in one over ssh
#if [[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]; then
# [[ -z "${TMUX}" ]] && tmux new-session -A -s default
#fi
#source ~/.local/bin/virtualenvwrapper.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
eval "$(zoxide init zsh)"
eval "$(starship init zsh)"