Fix exported environment variables

This commit is contained in:
Fabio Scotto di Santolo
2025-08-08 23:54:11 +02:00
parent 37034ef693
commit 23e8ed4ace
2 changed files with 25 additions and 9 deletions

View File

@@ -1,5 +1,10 @@
export DOTFILES="$HOME/.dotfiles" export DOTFILES="$HOME/.dotfiles"
export MANPAGER="nvim +Man!"
export EDITOR=nvim export EDITOR=nvim
export HELPDIR=/usr/share/zsh/"${ZSH_VERSION}"/help
export MISE_HOME=$HOME/.local/share/mise/installs
# fzf
export FZF_DEFAULT_COMMAND="fd --hidden --type file --strip-cwd-prefix --exclude .git" export FZF_DEFAULT_COMMAND="fd --hidden --type file --strip-cwd-prefix --exclude .git"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --hidden --type directory --strip-cwd-prefix --exclude .git" export FZF_ALT_C_COMMAND="fd --hidden --type directory --strip-cwd-prefix --exclude .git"
@@ -13,12 +18,23 @@ export FZF_DEFAULT_OPTS=" \
--color=border:#313244,label:#CDD6F4" --color=border:#313244,label:#CDD6F4"
export FZF_TMUX_OPTS=" -p90%,70%" export FZF_TMUX_OPTS=" -p90%,70%"
export FZF_CTRL_T_OPTS="--preview 'bat --color=always -n --line-range :500 {}'" export FZF_CTRL_T_OPTS="--preview 'bat --color=always -n --line-range :500 {}'"
export FZF_ALT_C_OPTS="--preview 'eza --treee --color=always {} | head -200'" export FZF_ALT_C_OPTS="--preview 'eza --tree --color=always {} | head -200'"
# Golang
if command -v go >/dev/null 2>&1; then
export GOPATH="$HOME/.local/share/Go" export GOPATH="$HOME/.local/share/Go"
export GOBIN=$GOPATH/bin export GOBIN="$GOPATH/bin"
export GRAALVM_HOME="${HOME}/.local/share/mise/installs/java/graalvm-community-23.0.1" fi
export JAVA_HOME="${HOME}/.local/share/mise/installs/java/23.0.1"
export HELPDIR=/usr/share/zsh/"${ZSH_VERSION}"/help # Java
if command -v java >/dev/null 2>&1; then
export JAVA_HOME="$(dirname $(mise bin-paths | grep -i java))"
fi
if command -v jmeter >/dev/null 2>&1; then
export JMETER_HOME="$(which jmeter)" export JMETER_HOME="$(which jmeter)"
fi
# Python
export VIRTUAL_ENV_DISABLE_PROMPT=1 export VIRTUAL_ENV_DISABLE_PROMPT=1

View File

@@ -4,8 +4,6 @@
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh" export ZSH="$HOME/.oh-my-zsh"
[[ ! -f ~/.zshenv ]] || source ~/.zshenv
# Set name of the theme to load --- if set to "random", it will # Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case, # load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME # to know which specific one was loaded, run: echo $RANDOM_THEME
@@ -89,6 +87,8 @@ source $ZSH/oh-my-zsh.sh
# User configuration # User configuration
[[ ! -f ~/.zshenv ]] || source ~/.zshenv
# export MANPATH="/usr/local/man:$MANPATH" # export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment # You may need to manually set your language environment