Moved from Avante to CodeCompanion and it's been a better experience. Updated blink and ruff to work better with python.
This commit is contained in:
27
zsh/.zshrc
27
zsh/.zshrc
@ -12,10 +12,36 @@ export LC_ALL=en_US.UTF-8
|
|||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
# autoload -Uz compinit; compinit; _comp_options+=(globdots);
|
# autoload -Uz compinit; compinit; _comp_options+=(globdots);
|
||||||
|
|
||||||
|
# ssh using a new window when we are in TMUX
|
||||||
|
ssh() {
|
||||||
|
if [ -n "${TMUX:-}" ]; then
|
||||||
|
# Extract the destination host from the command arguments
|
||||||
|
local dest_user_host=$(
|
||||||
|
printf "%s " "$@" | awk 'match($0, /[a-zA-Z0-9_.-]+@[a-zA-Z0-9_.-]+/) {print substr($0,RSTART,RLENGTH)}'
|
||||||
|
)
|
||||||
|
|
||||||
|
# Rename tmux window and pane if possible
|
||||||
|
(
|
||||||
|
set +e # Continue even if rename fails
|
||||||
|
tmux display-message -p "#{pane_id}" > /dev/null && tmux rename-window "$dest_user_host"
|
||||||
|
tmux rename-pane "$dest_user_host" 2>/dev/null || true
|
||||||
|
) &> /dev/null
|
||||||
|
|
||||||
|
command ssh "$@"
|
||||||
|
|
||||||
|
# Restore automatic renaming (if enabled)
|
||||||
|
tmux set-window-option automatic-rename on > /dev/null 2>&1 || true
|
||||||
|
else
|
||||||
|
command ssh "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
export DOT="~/.dotfiles"
|
export DOT="~/.dotfiles"
|
||||||
alias vim='vim -S ~/.vimrc'
|
alias vim='vim -S ~/.vimrc'
|
||||||
alias nvim='nvim'
|
alias nvim='nvim'
|
||||||
|
alias uvupdate='while read line; do [[ -n "$line" && ! "$line" =~ ^[[:space:]]*# ]] && uv pip install "$line" --upgrade; done < requirements.txt'
|
||||||
# alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
|
# alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
|
||||||
export CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
|
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
|
||||||
@ -65,3 +91,4 @@ eval "$(uv generate-shell-completion zsh)"
|
|||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.dotfiles/zsh/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.dotfiles/zsh/.p10k.zsh.
|
||||||
[[ ! -f ~/.dotfiles/zsh/.p10k.zsh ]] || source ~/.dotfiles/zsh/.p10k.zsh
|
[[ ! -f ~/.dotfiles/zsh/.p10k.zsh ]] || source ~/.dotfiles/zsh/.p10k.zsh
|
||||||
|
ANTHROPIC_BEARER_TOKEN=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
|
||||||
|
|||||||
Reference in New Issue
Block a user