-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
40 lines (29 loc) · 972 Bytes
/
.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
# ~/.zshrc
# Installing nvm: https://github.com/nvm-sh/nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
function venv_activate() {
source .virtualenv/bin/activate
}
function venv_create() {
python3 -m venv .virtualenv
}
# Install zsh autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/local/etc/bash_completion.d
# Install starship
eval "$(starship init zsh)"
# Install https://github.com/gibbling/dircolors
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
alias ls='ls -G'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
export GREP_OPTIONS='--color=always'
export GREP_COLOR='1;35;40'
export HISTCONTROL=ignoreboth:erasedups
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi