-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
72 lines (51 loc) · 1.65 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
autoload -U colors
autoload -U compinit
# makes color constants available
colors
# enable colored output from ls, etc
export CLICOLOR=1
# expand functions in the prompt
setopt prompt_subst
if [ -n "$DISPLAY" ]; then
export BROWSER=google-chrome
fi
export TERM=gnome-256color
stty -ixon
# completion
compinit
# automatically enter directories without cd
setopt auto_cd
# use vim as an editor
export EDITOR=nvim
# aliases
if [ -e "$HOME/.aliases" ]; then
source "$HOME/.aliases"
fi
# vi mode
bindkey -v
# use incremental search
bindkey ^R history-incremental-search-backward
# expand functions in the prompt
setopt prompt_subst
# ignore duplicate history entries
setopt histignoredups
setopt share_history
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.history
setopt APPEND_HISTORY
if [ -e "$HOME/.cargo/bin" ]; then
export PATH=$HOME/.cargo/bin:$PATH
fi
export PATH=$HOME/homebrew/bin:$HOME/.npm/bin:$HOME/.bin:$HOME/.local/bin:/usr/local/sbin:/usr/local/bin:$HOME/homebrew/opt/python@3.11/libexec/bin:$PATH
export NODE_PATH=/usr/lib/node_modules:/usr/local/lib/node_modules:$NODE_PATH
export PATH="/usr/local/opt/php@8.1/bin:$PATH"
export PATH="/usr/local/opt/php@8.1/sbin:$PATH"
export PATH="/usr/local/opt/node@18/bin:$PATH"
eval "$(starship init zsh)"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PATH="/Users/aleksander.gyoshev/homebrew/opt/openjdk/bin:$PATH"
export CPPFLAGS="-I/Users/aleksander.gyoshev/homebrew/opt/openjdk/include"
export PATH="/Users/aleksander.gyoshev/homebrew/opt/ruby/bin:$PATH"