-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
34 lines (25 loc) · 1 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
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
export PATH="$HOME/.bin":$PATH
export PATH="$HOME/.cargo/bin":$PATH
export PATH="$HOME/.local/bin":$PATH
alias vim=~/.local/bin/lvim
export VISUAL=lvim
export EDITOR="$VISUAL"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH
# --files: List files that would be searched but do not search
# --no-ignore: Do not respect .gitignore, etc...
# --hidden: Search hidden files and folders
# --follow: Follow symlinks
# --glob: Additional conditions for search (in this case ignore everything in the .git/ folder)
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
# add history to iex
export ERL_AFLAGS="-kernel shell_history enabled";
. $HOME/.asdf/asdf.sh
# append completions to fpath
fpath=(${ASDF_DIR}/completions $fpath)
# initialise completions with ZSH's compinit
autoload -Uz compinit && compinit