add changes made in work workstation
This commit is contained in:
16
zsh/.zshrc
16
zsh/.zshrc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user