-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
59 lines (42 loc) · 1.41 KB
/
dot_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
# -*-sh-*-
# Determine the session type
if [[ $TERM == "dumb" ]]; then
SESSION_TYPE=dumb
elif [[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]; then
SESSION_TYPE=remote/ssh
else
SESSION_TYPE=local
fi
export PATH="$HOME/.local/bin:$PATH"
export XDG_CONFIG_HOME="$HOME/.config"
# Set editor to neovim if it exists, otherwise vim
command -v nvim &>/dev/null && export EDITOR="nvim" || export EDITOR="vim"
[[ -d $HOME/.cargo ]] && source $HOME/.cargo/env
# If connected to by dumb terminal, immediately return
[[ $SESSION_TYPE == dumb ]] && PS1='$ ' && return
# If this is not an xterm, return immediately into default shell
[[ ! $TERM =~ "xterm" ]] && return
export TERM="xterm"
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=1000
setopt extendedglob nomatch
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/ethan/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
bindkey '^ ' autosuggest-accept
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=4"
setopt HIST_IGNORE_SPACE
source $HOME/.config/zsh/aliases
source $HOME/.config/zsh/antigen.zsh
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle jeffreytse/zsh-vi-mode
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle hlissner/zsh-autopair
antigen apply
eval "$(zoxide init zsh)"
eval "$(starship init zsh)"