This commit is contained in:
Christoph J. Scherr 2024-07-05 22:32:13 +02:00
parent 7d4e261254
commit 34a61fe1f9
1 changed files with 8 additions and 16 deletions

24
.zshrc
View File

@ -33,7 +33,6 @@ alias datefmt='date $DATEFMT'
alias gg=lazygit
alias reload="source ~/.zshrc"
alias gls=/bin/ls
alias neorg='nvim -c "Neorg workspace $1"'
alias bat=batcat
alias accon="HOST=$(hostname) conda activate"
alias gotemp="cd $(mktemp -d)"
@ -87,6 +86,14 @@ setopt hist_ignore_dups # ignore duplicated commands history list
setopt hist_ignore_space # ignore commands that start with space
setopt hist_verify # show command with history expansion to user before running it
### load unversioned zsh code
if [ -f ~/.zsh.local ]; then
source ~/.zsh.local
else
touch ~/.zsh.local
fi
### --- Inputs Config ------------------------------------
# vim keys, then override stuff.
bindkey -v
@ -178,10 +185,6 @@ fpath=($ZSH/plugins/zsh-completions/src $fpath)
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
export FZF_CTRL_R_OPTS='--no-sort --exact'
### --- nnn Config ------------------------------------
source ~/.local/share/nnn/quitcd/quitcd.bash_zsh
export NNN_PLUG='j:jump;z:autojump;'
### --- kitty Config ------------------------------------
# $KITTY_TERM is a custom envar I set in the kitty conf
# this stuff does not work nicely with tmux, just make them regular aliases. Shows an error if you use them in another terminal
@ -204,13 +207,6 @@ else
eval "$(zoxide init zsh)"
fi
### load unversioned zsh code
if [ -f ~/.zsh.local ]; then
source ~/.zsh.local
else
touch ~/.zsh.local
fi
### --- pyenv Config -------------------------------------
if [ -d $HOME/.pyenv ]; then
export PYENV_ROOT="$HOME/.pyenv"
@ -219,7 +215,3 @@ if [ -d $HOME/.pyenv ]; then
eval "$(pyenv virtualenv-init - zsh)"
pyenv activate std 2> /dev/null > /dev/null
fi
export NVM_DIR="$HOME/.config/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