Fix Doom config

This commit is contained in:
Fabio Scotto di Santolo
2025-10-25 17:10:48 +02:00
parent 90fa090890
commit 9acf200418
7 changed files with 48 additions and 38 deletions

View File

@@ -184,3 +184,7 @@ if command -v starship > /dev/null 2>&1; then
eval "$(starship init bash)"
fi
# Load Mise en dev
if command -v mise > /dev/null 2>&1; then
eval "$(mise activate bash)"
fi

View File

@@ -1,17 +1,3 @@
appendpath() {
local location="${1}"
case ":$PATH:" in
*":$location:"*) ;;
*) export PATH="$PATH:$location" ;;
esac
}
appendpath "$HOME/.local/bin"
appendpath "$HOME/.cargo/bin"
appendpath "/home/linuxbrew/.linuxbrew/bin"
appendpath "$HOME/.config/emacs/bin"
unset appendpath
# XDG variables
export XDG_CONFIG_HOME=${HOME}/.config
export XDG_DATA_HOME=${HOME}/.local/share
@@ -28,10 +14,8 @@ export QT_STYLE_OVERRIDE=kvantum
# Make Qt apps honour DPI settings.
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export ZSH_HOME="$HOME/.zsh"
export DOTFILES="$HOME/.dotfiles"
export EDITOR=nvim
export HELPDIR=/usr/share/zsh/"${ZSH_VERSION}"/help
export EDITOR=nano
# SSH socket
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
@@ -50,8 +34,24 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
# export FZF_TMUX_OPTS=" -p90%,70%"
export VIRTUAL_ENV_DISABLE_PROMPT=1
# Export Golang enviroments
export GOPATH="$HOME/.local/share/Go"
export GOBIN="$GOPATH/bin"
source "$HOME/.profile.d/homebrew.sh"
source "$HOME/.profile.d/mise.sh"
source "$HOME/.profile.d/golang.sh"
source "$HOME/.profile.d/java.sh"
appendpath() {
local location="${1}"
case ":$PATH:" in
*":$location:"*) ;;
*) export PATH="$PATH:$location" ;;
esac
}
appendpath "$HOME/.local/bin"
appendpath "$GOBIN"
appendpath "$HOME/.cargo/bin"
appendpath "/home/linuxbrew/.linuxbrew/bin"
appendpath "$HOME/.config/emacs/bin"
unset appendpath

View File

@@ -1,6 +0,0 @@
#!/usr/bin/env bash
if command -v go > /dev/null 2>&1; then
export GOPATH="$HOME/.local/share/Go"
export GOBIN="$GOPATH/bin"
fi

View File

@@ -1,5 +0,0 @@
#!/usr/bin/env bash
if command -v mise > /dev/null 2>&1; then
eval "$(mise activate bash)"
fi