-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
101 lines (78 loc) · 2.58 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/.local/nvim-linux64/bin:$PATH
export PATH=$PATH:$HOME/go/bin
export PATH=$PATH:$HOME/cockroach-v23.1.12.linux-amd64/
export PATH=$PATH:$HOME/cockroach-sql-v23.1.12.linux-amd64/
export PATH=$PATH:$HOME/.pulumi/bin/
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
HYPHEN_INSENSITIVE="true"
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Disable marking untracked files under VCS as dirty.
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Custom source scripts
ZSH_CUSTOM="$HOME/.zsh_custom"
# Extended glob
setopt extendedglob
# Plugins
plugins=(
git
docker
z
zsh-autosuggestions
zsh-syntax-highlighting
zsh-vi-mode
)
source $ZSH/oh-my-zsh.sh
# ************************ User configuration **********************************
# Keybinds
bindkey -v
bindkey '^ ' autosuggest-accept
autoload -Uz edit-command-line
zle -N edit-command-line
bindkey -M vicmd '!' edit-command-line
# zsh-autosuggestions
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
export LANG=en_US.UTF-8
# Preferred editor
export EDITOR='nvim'
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
export VISUAL=$EDITOR
# ********************************** Conda *************************************
export PATH="$HOME/.poetry/bin:$PATH"
. "$HOME/.cargo/env"
eval "$(starship init zsh)"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/eho/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/eho/miniforge3/etc/profile.d/conda.sh" ]; then
. "/home/eho/miniforge3/etc/profile.d/conda.sh"
else
export PATH="/home/eho/miniforge3/bin:$PATH"
fi
fi
unset __conda_setup
if [ -f "/home/eho/miniforge3/etc/profile.d/mamba.sh" ]; then
. "/home/eho/miniforge3/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<
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
# add Pulumi to the PATH
export PATH=$PATH:/home/eho/.pulumi/bin