-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
76 lines (56 loc) · 2.03 KB
/
zshrc
File metadata and controls
76 lines (56 loc) · 2.03 KB
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
70
71
72
73
74
75
76
export ZSH=$HOME/.oh-my-zsh
export ZSH_THEME="aalin"
export ZSH_DISABLE_COMPFIX=true
plugins=(git rails brew git-escape-magic bundler asdf)
source $ZSH/oh-my-zsh.sh
compinit
export LC_ALL=en_US.UTF-8
export HISTSIZE=1000
export SAVEHIST=1000
export HISTFILE=~/.zsh_history
unsetopt extendedglob # So that I can do "git reset --soft HEAD^" without getting "zsh: no matches found: HEAD^"
unsetopt share_history
if [[ "$HOMEBREW_PREFIX" ]]; then
export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"
export MANPATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnuman:$MANPATH"
fi
if type dircolors &> /dev/null ; then
eval $(dircolors ~/.dircolors)
fi
export COLORTERM=24bit
export GOPATH=$HOME/go
# Use LS_COLORS when completing
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' select-prompt '%SCurrent selection at %p%s'
setopt NO_NOMATCH
bindkey '^?' backward-delete-char
bindkey '^[[1~' beginning-of-line
bindkey '^[[3~' delete-char
bindkey '^[[4~' end-of-line
bindkey '^[[5~' up-line-or-history
bindkey '^[[6~' down-line-or-history
bindkey '^[[A' up-line-or-search
bindkey '^[[B' down-line-or-search
bindkey '^[[C' forward-char
bindkey '^[[D' backward-char
bindkey "[D" backward-word
bindkey "[C" forward-word
export PATH=$HOME/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=/usr/local/bin:$PATH
export EDITOR=nvim
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile"
[[ -s "$HOME/.aliases" ]] && source "$HOME/.aliases"
[[ -s "$HOME/.aliases.local" ]] && source "$HOME/.aliases.local"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
export PATH="$PATH:$HOME/.rvm/bin"
if [[ -z "${DEVBOX}" ]]; then
export NVM_DIR="/Users/andreas/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export FZF_DEFAULT_COMMAND='fd --type f'
if [[ -f ~/.config/broot/launcher/bash/br ]]; then
source ~/.config/broot/launcher/bash/br
fi