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

@@ -1,15 +1,2 @@
export PATH=~/.local/bin:$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
export PATH="$(go env GOPATH)/bin:$PATH"
# PATH/brew/go are set in .zshenv for interactive shells (including login).
# .zprofile is only for login; .zshenv already runs first and sets PATH when -t 0.

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

View File

@@ -36,9 +36,10 @@ case "$(uname -s)" in
fi
} ;;
Darwin*) {
source "$(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# Use HOMEBREW_PREFIX (set in .zshenv) to avoid slow brew --prefix subprocess on every new shell
source "${HOMEBREW_PREFIX}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# make less more friendly for non-text input files, see lesspipe(1)
export LESSOPEN="|$(brew --prefix)/bin/lesspipe.sh %s"
export LESSOPEN="|${HOMEBREW_PREFIX}/bin/lesspipe.sh %s"
} ;;
*) ;;
esac
@@ -86,6 +87,9 @@ function preexec() {
}
precmd() {
# Tell tmux our cwd (for pane_current_path) so tmux-window-name can show the directory
[[ -n "$TMUX" ]] && printf '\e]7;file://%s\a' "$(pwd)"
if [[ $__GIT_COMMAND_EXECUTED -eq 1 ]]; then
zstyle ':vcs_info:git*:*' cache-ttl 0
__GIT_COMMAND_EXECUTED=0
@@ -133,3 +137,11 @@ function +vi-git-extra() {
fi
fi
}
# Kiro CLI post block. Keep at the bottom of this file.
[[ -f "${HOME}/Library/Application Support/kiro-cli/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/kiro-cli/shell/zshrc.post.zsh"
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/Users/inaki.dominguez/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)

View File

@@ -1,7 +1,10 @@
# Should be called before compinit
zmodload zsh/complist
autoload -U compinit; compinit
# Use a dump file and skip security check for much faster startup (compinit is a major bottleneck)
mkdir -p "${HOME}/.cache/zsh"
autoload -U compinit
compinit -C -d "${HOME}/.cache/zsh/.zcompdump"
_comp_options+=(globdots) # With hidden files
# +---------+