2020-11-07 14:03:30 +01:00
|
|
|
# p10k
|
|
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
|
|
fi
|
|
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
|
|
|
|
|
|
plugins=(
|
|
|
|
git
|
2021-05-06 16:34:34 +02:00
|
|
|
asdf
|
2020-11-07 14:03:30 +01:00
|
|
|
zsh-autosuggestions
|
|
|
|
)
|
|
|
|
|
|
|
|
eval `dircolors ~/.dircolors`
|
|
|
|
|
|
|
|
# Load oh my zsh
|
|
|
|
export ZSH=~/.oh-my-zsh
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
|
|
|
## FUNCTIONS ##
|
2020-11-08 21:55:05 +01:00
|
|
|
source $HOME/.dotfiles/configs/zsh/functions.zsh
|
2020-11-07 14:03:30 +01:00
|
|
|
|
2020-11-07 15:58:15 +01:00
|
|
|
## ALIASES ##
|
2020-11-08 21:55:05 +01:00
|
|
|
source $HOME/.dotfiles/configs/zsh/aliases.sh
|
2020-11-07 14:03:30 +01:00
|
|
|
|
|
|
|
## LOADING PROGRAMS
|
|
|
|
export PATH="$PATH:$HOME/.yarn/bin"
|
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
2021-01-21 13:39:57 +01:00
|
|
|
export PATH="$PATH:$HOME/bin"
|
2021-02-03 22:37:56 +01:00
|
|
|
export PATH="$PATH:$HOME/go/bin"
|
2020-11-30 12:55:23 +01:00
|
|
|
|
2021-05-06 16:34:34 +02:00
|
|
|
export PATH="$PATH:/mnt/c/users/jim/AppData/Local/Programs/Microsoft VS Code Insiders/bin";
|
|
|
|
export PATH="$PATH:/mnt/c/users/jim/AppData/Local/Programs/Microsoft VS Code/bin";
|
|
|
|
|
2021-04-23 15:23:37 +02:00
|
|
|
export DENO_INSTALL="/home/jim/.deno"
|
2021-05-06 16:34:34 +02:00
|
|
|
export PATH="$PATH:$DENO_INSTALL/bin"
|
2021-04-23 15:23:37 +02:00
|
|
|
|
2021-03-18 14:10:17 +01:00
|
|
|
## Setup VIM
|
|
|
|
export EDITOR="nvim"
|
|
|
|
|
2020-11-30 12:55:23 +01:00
|
|
|
## GO STUFF
|
2021-02-03 22:37:56 +01:00
|
|
|
export PATH=$PATH:/usr/local/go/bin
|
2020-11-07 14:03:30 +01:00
|
|
|
|
2020-11-08 21:55:05 +01:00
|
|
|
[[ -s $(which direnv) ]] && eval "$(direnv hook zsh)"
|
2020-11-07 14:03:30 +01:00
|
|
|
|
2020-11-07 16:40:23 +01:00
|
|
|
#Java version manager
|
2021-05-06 16:34:34 +02:00
|
|
|
#export SDKMAN_DIR="$HOME/.sdkman"
|
|
|
|
#[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
|
|
|
|
2020-11-07 14:03:30 +01:00
|
|
|
# Go version manager
|
2021-05-06 16:34:34 +02:00
|
|
|
#[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
|
2020-11-07 16:40:23 +01:00
|
|
|
|
|
|
|
# Node Version manager
|
2021-05-06 16:34:34 +02:00
|
|
|
#export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
|
|
|
#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
2020-11-08 21:55:05 +01:00
|
|
|
|
2021-02-03 22:37:56 +01:00
|
|
|
if [ -d $HOME/.dotnet ]; then
|
|
|
|
export DOTNET_ROOT=$HOME/.dotnet;
|
|
|
|
export PATH=$PATH:$HOME/.dotnet;
|
|
|
|
fi
|
|
|
|
|
2021-03-18 14:10:17 +01:00
|
|
|
#Load pyenv if found
|
|
|
|
if [ -s "$HOME/.pyenv" ]; then
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
|
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
fi
|
|
|
|
|
2021-06-11 13:56:40 +02:00
|
|
|
# For wsl stay in the current dir when splitting panes?
|
|
|
|
export PROMPT_COMMAND='printf "\e]9;9;%s\e\\" "$(wslpath -m "$PWD")"'
|
|
|
|
|
2021-06-14 10:55:31 +02:00
|
|
|
source $HOME/.dotfiles/configs/zsh/update-repo.zsh
|
|
|
|
|
2021-01-21 13:39:57 +01:00
|
|
|
# The next line updates PATH for the Google Cloud SDK.
|
2021-05-06 16:34:34 +02:00
|
|
|
#if [ -f '/home/coder/downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/home/coder/downloads/google-cloud-sdk/path.zsh.inc'; fi
|
2021-01-21 13:39:57 +01:00
|
|
|
|
|
|
|
# The next line enables shell command completion for gcloud.
|
2021-05-06 16:34:34 +02:00
|
|
|
#if [ -f '/home/coder/downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/coder/downloads/google-cloud-sdk/completion.zsh.inc'; fi
|
2021-03-18 14:10:17 +01:00
|
|
|
|
2021-06-22 13:05:12 +02:00
|
|
|
if [ -s "$HOME/.asdf" ]; then
|
|
|
|
. $HOME/.asdf/asdf.sh
|
|
|
|
. $HOME/.asdf/completions/asdf.bash
|
|
|
|
fi
|
2021-05-06 16:34:34 +02:00
|
|
|
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
2021-06-11 13:56:40 +02:00
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
2021-06-14 18:28:53 +02:00
|
|
|
|
|
|
|
# tabtab source for packages
|
|
|
|
# uninstall by removing these lines
|
|
|
|
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true
|