Work: Update specific configuration

This commit is contained in:
2026-05-05 08:45:38 +02:00
parent d613476129
commit 470ed4a7b2
3 changed files with 34 additions and 7 deletions

View File

@@ -2,6 +2,9 @@ alias dcb='devcontainer build --workspace-folder $(git rev-parse --show-toplevel
alias dce='devcontainer exec --workspace-folder $(git rev-parse --show-toplevel)'
alias dcu='devcontainer up --workspace-folder $(git rev-parse --show-toplevel)'
alias k='kubectl'
alias meld=/Applications/Meld.app/Contents/MacOS/Meld
if /usr/bin/which -s pyenv; then
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
fi

View File

@@ -1,3 +1,16 @@
for d in \
"${HOME}/.dotnet/tools" \
"/opt/homebrew/opt/dotnet@9/bin" \
"${HOME}/go/bin" \
"${HOME}/.local/bin" \
"${HOME}/.bun" \
;
do
if [ -d ${d} ]; then
PATH="${d}:${PATH}"
fi
done
# pyenv support
export PYENV_ROOT="${HOME}/.pyenv"
[[ -d ${PYENV_ROOT}/bin ]] && export PATH="${PYENV_ROOT}/bin:${PATH}"
@@ -6,7 +19,21 @@ eval "$(pyenv init -)"
# pyenv-virtualenv
eval "$(pyenv virtualenv-init -)"
# Setting PATH for Python 3.12
# The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.12/bin:${PATH}"
# DotNet support
export DOTNET_ROOT="/opt/homebrew/opt/dotnet@9/libexec"
export PATH
#export API_KEY_INPUT="d07304e9c314b20c7ac022d6b0c328a5"
# Terraform cache folder is 400MiB per projects...
export TF_PLUGIN_CACHE_DIR="${HOME}/.cache/terraform/plugins"
# Set default config for k9s
export K9S_CONFIG_DIR="${HOME}/.config/k9s"
# bun completions
[ -s "/Users/sambuc/.bun/_bun" ] && source "/Users/sambuc/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"

View File

@@ -1,4 +1 @@
# Add ~/bin
if [ -e "${HOME}/.local/bin" ]; then
PATH="${HOME}/.local/bin:${PATH}"
fi
p="${HOME}/Projects"