.dotfiles/configs/.zshrc

87 lines
2.3 KiB
Bash
Raw Normal View History

# Update Repo
source $HOME/.dotfiles/configs/zsh/update-repo.zsh
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
2021-08-23 18:47:23 +02:00
2020-11-07 14:03:30 +01:00
ZSH_THEME="powerlevel10k/powerlevel10k"
2021-08-23 18:47:23 +02:00
ZSH_TMUX_AUTOSTART=true
2021-08-31 21:22:57 +02:00
ZSH_TMUX_AUTOCONNECT=false
2020-11-07 14:03:30 +01:00
plugins=(
git
docker
2021-08-23 18:47:23 +02:00
tmux
2021-10-11 16:49:55 +02:00
asdf
zsh-autosuggestions
2020-11-07 14:03:30 +01:00
)
eval `dircolors ~/.dircolors`
2021-07-04 15:54:39 +02:00
export FPATH=$FPATH:~/.dotfiles/completions
2020-11-07 14:03:30 +01:00
# 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/bin"
2021-10-25 19:44:21 +02:00
export PATH="$PATH:/usr/sbin"
2021-04-23 15:23:37 +02:00
2021-03-18 14:10:17 +01:00
## Setup VIM
export EDITOR="nvim"
# Automatically load direnv if found
2020-11-08 21:55:05 +01:00
[[ -s $(which direnv) ]] && eval "$(direnv hook zsh)"
2020-11-07 14:03:30 +01:00
2021-08-01 16:09:28 +02:00
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
2021-10-11 16:49:55 +02:00
if [ -d "$HOME/.asdf" ] ; then
. "$HOME/.asdf/asdf.sh"
fi
2021-12-18 14:41:37 +01:00
if [ "$(which go)" != "" ] ; then
export PATH="$PATH:$(go env GOPATH)/bin"
fi
2021-08-01 16:09:28 +02:00
#If fdfind is installed force fzf to use it
2021-09-06 13:29:42 +02:00
if type fdfind &> /dev/null ; then
2021-08-23 18:47:23 +02:00
export FZF_DEFAULT_COMMAND='fdfind --type f'
2021-08-01 16:09:28 +02:00
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
fi
2021-09-06 13:29:42 +02:00
#If ripgrep is installed prefer it over fdfind
if type rg &> /dev/null; then
export FZF_DEFAULT_COMMAND='rg --files'
export FZF_DEFAULT_OPTS='-m --height 50% --border'
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
2021-08-23 18:47:23 +02:00
export PNPM_HOME="$HOME/.local/share/pnpm"
2021-08-10 21:50:49 +02:00
export PATH="$PNPM_HOME:$PATH"
2021-10-11 16:49:55 +02:00
if [ -e /home/jim/.nix-profile/etc/profile.d/nix.sh ]; then . /home/jim/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
2021-11-24 14:29:06 +01:00
PATH="/home/jim/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/home/jim/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/jim/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/home/jim/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/jim/perl5"; export PERL_MM_OPT;