-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.zshrc
More file actions
37 lines (31 loc) · 986 Bytes
/
.zshrc
File metadata and controls
37 lines (31 loc) · 986 Bytes
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
# Personal config
export PATH=~/.local/bin:~/.cargo/bin:$PATH
export PROMPT='%~ $ '
export LANG=en_US.UTF-8
export EDITOR=nvim
export VISUAL=nvim
set -o vi
bindkey '^R' history-incremental-search-backward
alias vi='nvim'
alias vim='nvim'
if [[ "$OSTYPE" == darwin* ]]; then
if ! [[ -d /opt/homebrew/opt/coreutils/libexec/gnubin ]]; then
echo "Consider brew install coreutils to use GNU utils"
else
export PATH=/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH
alias ls='ls --color=auto'
source ~/code/init/lscolors.zsh
fi;
if type brew &>/dev/null
then
FPATH="/opt/homebrew/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit -C
fi
fi;
if command -v zoxide > /dev/null; then
export _ZO_FZF_OPTS='--select-1 --exit-0'
eval "$(zoxide init zsh)"
fi
# Skip fzf shell integration on startup (load manually with `source ~/.fzf.zsh` when needed).
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh