dotfiles/.zshrc

84 lines
2.0 KiB
Bash
Raw Normal View History

2017-09-01 12:43:51 +00:00
source $HOME/.aliases
2017-09-28 10:38:59 +00:00
# Set $PATH
export PATH=$HOME/bin:$PATH
2020-03-20 11:43:45 +00:00
# Set Golang
export PATH=$PATH:/usr/local/go/bin
2021-07-11 14:06:47 +00:00
export GOPATH=$HOME/Projects/golang
2020-03-20 11:43:45 +00:00
export PATH=$PATH:$GOPATH/bin
2021-07-11 14:06:47 +00:00
2021-10-07 14:15:45 +00:00
# History
export HISTFILE=$HOME/.zsh_history
export HISTSIZE=15000 # keep 15,000 lines in memory
export SAVEHIST=10000 # but save only 10,000 of them
2019-02-11 16:43:02 +00:00
# VTE
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
source /etc/profile.d/vte.sh
fi
2020-01-21 09:29:28 +00:00
2022-01-07 16:43:30 +00:00
# Conda
2020-01-21 09:29:28 +00:00
__conda_setup="$('/home/matus/bin/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/matus/bin/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/matus/bin/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/matus/bin/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
2022-01-07 16:43:30 +00:00
# Node Version Manager
2021-07-11 14:06:47 +00:00
lazynvm() {
unset -f nvm node npm
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
}
nvm() {
lazynvm
nvm $@
}
node() {
lazynvm
node $@
}
npm() {
lazynvm
npm $@
}
2022-01-07 16:43:30 +00:00
# ZSH Plugins
## Oh My Zsh
source ~/.zsh/ohmyzsh/plugins/pip/pip.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/command-not-found/command-not-found.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/docker/_docker
source ~/.zsh/ohmyzsh/plugins/docker-compose/docker-compose.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/git/git.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/golang/golang.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/jsontools/jsontools.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/sudo/sudo.plugin.zsh
### Prompt Theme
source ~/.zsh/ohmyzsh/themes/gentoo.zsh-theme
## zsh-users
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-completions/zsh-completions.plugin.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
2022-01-13 11:53:54 +00:00
source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
# Bindkeys
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# Set Prompt
setopt promptsubst