-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
65 lines (49 loc) · 1.75 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
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Mini oh my zsh
source ~/.config/zsh/mini-omz/mini-omz.sh
# Plugins
source ~/.config/zsh/mini-omz/plugins/colored-man-pages/colored-man-pages.plugin.zsh
source ~/.config/zsh/mini-omz/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.config/zsh/mini-omz/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
source ~/.config/zsh/mini-omz/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.config/zsh/zsh-syntax-highlighting-custom-colors.sh
# FZF
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
if [[ -n $HISTFILE_OVERRIDE ]]; then
HISTFILE=$HISTFILE_OVERRIDE
else
HISTFILE=~/.histfile
fi
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory autocd
#bindkey -v
# Enable history search with up/down keys
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
# TODO: unused?
# The following lines were added by compinstall
zstyle :compinstall filename "$HOME/.zshrc"
autoload -Uz compinit
compinit
# End of lines added by compinstall
source ~/.commonrc
# (Customized) Agnoster theme
source ~/.config/zsh/mini-omz/themes/agnoster.zsh-theme
if [[ $HAS_NV_SMI = 1 ]]; then
# Show GPU name in prompt line when on compute node
source ~/.config/zsh/zsh-agnoster-compute-node.sh
else
source ~/.config/zsh/zsh-agnoster-custom.sh
fi
if [[ "$OSTYPE" == "darwin"* ]]; then
export TERM=alacritty
else
export TERM=xterm-256color
fi