2021-12-08 09:38:24 -06:00
|
|
|
# XDG
|
|
|
|
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|
|
|
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
2022-03-29 12:40:10 -05:00
|
|
|
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.local/cache}"
|
2021-12-08 09:38:24 -06:00
|
|
|
|
2022-01-21 10:06:52 -06:00
|
|
|
export HISTFILE=~/.zsh_history
|
2022-01-18 12:29:42 -06:00
|
|
|
export HISTSIZE=32768
|
|
|
|
export HISTFILESIZE="${HISTSIZE}"
|
2021-12-08 09:38:24 -06:00
|
|
|
export SAVEHIST=4096
|
|
|
|
export HISTCONTROL=ignoredups:erasedups
|
2021-12-09 22:26:16 -06:00
|
|
|
export LESS='-R'
|
2021-12-08 09:38:24 -06:00
|
|
|
|
|
|
|
# Append to the history file, rather than overwriting it
|
|
|
|
setopt APPEND_HISTORY
|
|
|
|
|
|
|
|
# Disable autocd
|
|
|
|
unsetopt autocd
|
|
|
|
|
|
|
|
# Vim Settings
|
|
|
|
# export VIMINIT='source $MYVIMRC'
|
|
|
|
# export MYVIMRC='$DOTFILES_DIR/system/.vimrc'
|
2022-01-27 10:41:14 -06:00
|
|
|
if is-executable lvim; then
|
2022-03-02 12:58:49 -06:00
|
|
|
export EDITOR=lvim
|
2022-01-27 10:41:14 -06:00
|
|
|
elif is-executable nvim; then
|
2021-12-08 09:38:24 -06:00
|
|
|
export EDITOR=nvim
|
|
|
|
else
|
|
|
|
export EDITOR=vim
|
|
|
|
fi
|
|
|
|
|
|
|
|
# spelling correction
|
|
|
|
# setopt CORRECT
|
|
|
|
# setopt CORRECT_ALL
|
|
|
|
|
|
|
|
# Setup fzf
|
|
|
|
# ---------
|
2022-01-18 12:29:42 -06:00
|
|
|
if [[ $PATH != *$HOME/.fzf/bin* ]]; then
|
|
|
|
export PATH="${PATH:+${PATH}:}$HOME/.fzf/bin"
|
2021-12-08 09:38:24 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
if is-executable fzf; then
|
|
|
|
source $DOTFILES_DIR/system/fzf.zsh
|
|
|
|
fi
|
|
|
|
# ---------
|
|
|
|
|
|
|
|
# Add lfcd command
|
|
|
|
# ----------------
|
|
|
|
if is-executable lf; then
|
|
|
|
source "$XDG_CONFIG_HOME/lf/lfcd.sh"
|
|
|
|
fi
|
|
|
|
# ----------------
|
|
|
|
|
|
|
|
# nvm settings
|
2021-12-17 01:37:48 -06:00
|
|
|
#export NVM_DIR="$HOME/.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
|
|
|
|
if is-executable fnm; then
|
2022-01-18 12:29:42 -06:00
|
|
|
eval "$(fnm env)"
|
2021-12-17 01:37:48 -06:00
|
|
|
fi
|
2021-12-08 09:38:24 -06:00
|
|
|
|
2022-01-19 15:12:29 -06:00
|
|
|
if is-executable bat; then
|
2022-03-02 12:58:49 -06:00
|
|
|
export BAT_THEME=Dracula
|
|
|
|
export BAT_STYLE=header,numbers,grid
|
2022-01-19 15:12:29 -06:00
|
|
|
fi
|
|
|
|
|
2022-02-08 09:38:03 -06:00
|
|
|
if is-executable zoxide; then
|
2022-03-02 12:58:49 -06:00
|
|
|
export _ZO_FZF_OPTS="--preview 'command lsd --tree --color always --icon always {2..}'"
|
2022-02-08 09:38:03 -06:00
|
|
|
fi
|
|
|
|
|
2021-12-08 09:38:24 -06:00
|
|
|
export ENHANCD_DOT_ARG="up"
|
|
|
|
|
|
|
|
export STARSHIP_CONFIG=~/.config/starship/config.toml
|
|
|
|
|
|
|
|
export EGET_BIN=$HOME/bin
|
|
|
|
|
|
|
|
# for dotenv
|
|
|
|
export ZSH_DOTENV_ALLOWED_LIST=$HOME/.cache/dotenv-allowed.list
|
|
|
|
export ZSH_DOTENV_DISALLOWED_LIST=$HOME/.cache/dotenv-disallowed.list
|
2022-02-13 19:41:41 -06:00
|
|
|
|
|
|
|
# mamba
|
|
|
|
export MAMBA_NO_BANNER=1
|