-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
37 lines (28 loc) · 823 Bytes
/
dot_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
# Set up homebrew with PATH
eval "$(/opt/homebrew/bin/brew shellenv)"
# Set up oh-my-posh prompt initialization
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
eval "$(oh-my-posh init zsh --config ~/.amro-custom.omp.json)"
fi
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --zsh)"
# Quick way to see files in column view with colors for directories
alias l="ls -1G"
# default editor
export EDITOR='nvim'
path=("$HOME/.local/bin" $path)
path=("$HOME/go/bin" $path)
# export to sub-processes (make it inherited by child processes)
export PATH
SCRIPT_PATH="${0:a:h}"
ZSHRC_ENV_PATH="$SCRIPT_PATH/.zshrc.env"
ZSHRC_LOCAL_PATH="$SCRIPT_PATH/.zshrc.local"
PATHS=($ZSHRC_ENV_PATH $ZSHRC_LOCAL_PATH)
for p in $PATHS; do
if [ -f $p ]; then
source $p
fi
done
function prettypath {
print -l $path
}