-
Notifications
You must be signed in to change notification settings - Fork 6
/
.zshrc
56 lines (44 loc) · 1.08 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
#!/usr/bin/env zsh
#
# Basic configuration
#
HISTFILE=~/.history
HISTSIZE=100000
SAVEHIST=$HISTSIZE
setopt appendhistory
setopt autocd
setopt beep
setopt correct
setopt extendedglob
setopt nonomatch # unmatched patterns are left unchanged
setopt sharehistory
# Interactive shells
if [[ $- == *i* ]]; then
# Source Prezto
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
fi
# Load chruby if available
CHRUBY=/usr/local/share/chruby
test -e "$CHRUBY/chruby.sh" && . "$CHRUBY/chruby.sh"
test -e "$CHRUBY/auto.sh" && . "$CHRUBY/auto.sh"
export EDITOR=nvim
export VISUAL=nvim
#
# Load extra functionality
#
if [ -d ~/dotfiles ] ; then
export DOTFILES=~/dotfiles
fi
source ~/.zsh/aliases
source ~/.zsh/base16-shell
source ~/.zsh/colors
source ~/.zsh/functions
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
# Source .zshrc.local if it exists
test -r ~/.zshrc.local && source ~/.zshrc.local
# Activate mise
# https://mise.jdx.dev/
eval "$(~/.local/bin/mise activate zsh)"