1
0

add changes made in work workstation

This commit is contained in:
2026-03-15 18:19:17 +01:00
parent f100cffb79
commit 07258cd68a
16 changed files with 401 additions and 50 deletions

View File

@@ -22,4 +22,27 @@ export GOPRIVATE="gitlab.feedzai.com,git.hcf.zone"
. "$HOME/.cargo/env"
# Interactive shells (e.g. new tmux windows): set PATH so we don't need a login shell.
# Tmux uses non-login shell by default; this avoids slow .zprofile on every new window.
if [[ -t 0 ]]; then
export PATH=~/.local/bin:$PATH
export PATH=~/.dotnet:$PATH
export PATH=$DOTFILES/scripts/hcf/:$PATH
case "$(uname -s)" in
Linux*) eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" ;;
Darwin*)
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="/opt/homebrew/bin/bash/bin:$PATH"
;;
esac
if [[ -f "${HOME}/.cache/zsh/go-gopath" ]]; then
export PATH="$(cat "${HOME}/.cache/zsh/go-gopath")/bin:$PATH"
else
export PATH="$(go env GOPATH)/bin:$PATH"
mkdir -p "${HOME}/.cache/zsh" && go env GOPATH >"${HOME}/.cache/zsh/go-gopath" 2>/dev/null
fi
# Tell tmux our cwd early so tmux-window-name plugin can show the directory (not "-")
[[ -n "$TMUX" ]] && printf '\e]7;file://%s\a' "$(pwd)"
fi
export PATH