dotfiles/system/env.sh

73 lines
1.6 KiB
Bash
Raw Normal View History

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}"
export PATH=$PATH:~/bin
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
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'
if is-executable nvim; then
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
export BAT_THEME=Dracula
export BAT_STYLE=header,numbers,grid
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