Minor fix

This commit is contained in:
js0ny 2025-04-07 08:51:19 +01:00
parent c37d7bb33e
commit 866174e7e2
7 changed files with 21 additions and 19 deletions

View file

@ -1 +0,0 @@
export FZF_DEFAULT_OPTS_FILE="$DOTFILES/common/fzfrc"

View file

@ -33,8 +33,11 @@ export PAGER="less -R"
export EDITOR="nvim"
export VISUAL="nvim"
export GHCUP_USE_XDG_DIRS=1
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
# Minimal PATH for early commands
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
export PATH="$HOME/.local/bin:/opt/share/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
if [ -d "/opt/homebrew/bin" ]; then # macOS
export PATH="/opt/homebrew/bin:$PATH"
@ -135,6 +138,10 @@ fi
if command -v emacs >/dev/null; then
export SPACEMACSDIR="$XDG_CONFIG_HOME"/spacemacs
fi
# Fzf
if command -v fzf > /dev/null; then
export FZF_DEFAULT_OPTS_FILE="$HOME/.dotfiles/common/fzfrc"
fi
# tldr
# Works only with C client (did not verify)
if command -v tldr >/dev/null; then
@ -162,3 +169,4 @@ fi
if command -v vcpkg >/dev/null; then
export VCPKG_ROOT="$XDG_DATA_HOME"/vcpkg
fi

View file

@ -32,3 +32,5 @@ esac
for file in $DOTFILES/tools/zsh/mod/*.zsh; do
source $file
done
[ -f "/home/js0ny/.local/share/ghcup/env" ] && . "/home/js0ny/.local/share/ghcup/env" # ghcup-env