oh-my-zsh rework + LiteLLM model presets
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# LiteLLM model presets. Sourced by .zshrc; overridable per-shell.
|
||||
# (Connection envs are baked into the workspace template; these are the picker.)
|
||||
export MODEL_CODE='qwen3-coder-30b-a3b-instruct'
|
||||
export MODEL_BIG_CODE='devstral-2-123b-instruct-2512'
|
||||
export MODEL_GENERAL='qwen3.5-397b-a17b'
|
||||
export MODEL_FAST='mistral-small-latest'
|
||||
export MODEL_REASON='deepseek-r1-distill-llama-70b'
|
||||
export MODEL_PRO='gemini-2.5-pro'
|
||||
export MODEL_EMBED='text-embedding-3-large'
|
||||
@@ -0,0 +1,19 @@
|
||||
[user]
|
||||
name = fkrebs
|
||||
email = fkrebs@nucli.de
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[pull]
|
||||
rebase = true
|
||||
[push]
|
||||
default = simple
|
||||
autoSetupRemote = true
|
||||
[core]
|
||||
editor = nano
|
||||
[diff]
|
||||
algorithm = histogram
|
||||
[alias]
|
||||
s = status -sb
|
||||
co = checkout
|
||||
br = branch
|
||||
lg = log --oneline --graph --decorate -20
|
||||
+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