feat(zsh): add zoxide, load everything optionally
This commit is contained in:
parent
f7d04b9da6
commit
88a8ae8307
2 changed files with 8 additions and 7 deletions
|
@ -5,6 +5,8 @@ export XDG_DATA_HOME="$HOME/.local/share"
|
|||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
|
||||
export EDITOR="nvim"
|
||||
export SUDO_EDITOR="nvim"
|
||||
export TERMINAL="wezterm-gui"
|
||||
export HISTFILE="$XDG_CONFIG_HOME/zsh/history"
|
||||
export LESSHISTFILE="-" # don't write a less history
|
||||
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
# vim:ft=zsh:fenc=utf-8:fdm=marker
|
||||
# load starship
|
||||
eval "$(starship init zsh)"
|
||||
[[ -x "$(command -v starship)" ]] && eval "$(starship init zsh)"
|
||||
|
||||
### plugins via antigen {{{
|
||||
# don't pollute $HOME with antigen
|
||||
ADOTDIR="$XDG_DATA_HOME/antigen"
|
||||
# bootstrap antigen
|
||||
if [[ ! -d "$ADOTDIR" ]]; then
|
||||
mkdir -p "$ADOTDIR"
|
||||
curl -L https://git.io/antigen > "$ADOTDIR/antigen.zsh"
|
||||
|
@ -79,6 +80,8 @@ elif [ -x "$(command -v bat)" ]; then
|
|||
alias cat='bat'
|
||||
fi
|
||||
|
||||
[[ -x "$(command -v zoxide)" ]] && eval "$(zoxide init zsh)"
|
||||
|
||||
# use neovim as vim, if installed
|
||||
if [[ -x "$(command -v nvim)" ]]; then
|
||||
alias vim='nvim'
|
||||
|
@ -167,14 +170,10 @@ function debugnvim() {
|
|||
|
||||
### languages & frameworks {{{
|
||||
# python, my old friend
|
||||
if [ -x "$(command -v pyenv)" ]; then
|
||||
eval "$(pyenv init -)"
|
||||
fi
|
||||
[[ -x "$(command -v pyenv)" ]] && eval "$(pyenv init -)"
|
||||
|
||||
# ruby
|
||||
if [ -x "$(command -v rbenv)" ]; then
|
||||
eval "$(rbenv init - zsh)"
|
||||
fi
|
||||
[[ -x "$(command -v rbenv)" ]] && eval "$(rbenv init - zsh)"
|
||||
|
||||
# node
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||
|
|
Loading…
Reference in a new issue