oh-my-zsh rework + LiteLLM model presets
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
# Oh My Zsh
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
ZSH_THEME="agnoster"
|
||||
plugins=(git docker python pip uv vscode command-not-found zsh-autosuggestions zsh-syntax-highlighting)
|
||||
source "$ZSH/oh-my-zsh.sh"
|
||||
|
||||
# User PATH
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export EDITOR="${EDITOR:-nano}"
|
||||
export MPLBACKEND="${MPLBACKEND:-Agg}"
|
||||
|
||||
# Source LiteLLM model presets if dotfiles delivered them
|
||||
[ -f "$HOME/.config/models.env" ] && source "$HOME/.config/models.env"
|
||||
|
||||
# Aliases
|
||||
alias ll='ls -lah --color=auto'
|
||||
alias g='git'
|
||||
alias gs='git status -sb'
|
||||
alias gd='git diff'
|
||||
alias gco='git checkout'
|
||||
alias uvr='uv run'
|
||||
alias uvs='uv sync'
|
||||
|
||||
# Model-switch aliases for aider (override per-call)
|
||||
alias aider-code='AIDER_MODEL=$MODEL_CODE aider'
|
||||
alias aider-big='AIDER_MODEL=$MODEL_BIG_CODE aider'
|
||||
alias aider-reason='AIDER_MODEL=$MODEL_REASON aider'
|
||||
alias aider-fast='AIDER_MODEL=$MODEL_FAST aider'
|
||||
|
||||
mkproj() {
|
||||
local name="$1"
|
||||
[ -z "$name" ] && echo 'usage: mkproj <name>' && return 1
|
||||
mkdir -p "$HOME/work/$name" && cd "$HOME/work/$name" && uv init
|
||||
}
|
||||
Reference in New Issue
Block a user