diff --git a/home_config/zellij/config.kdl b/home_config/zellij/config.kdl index d9ea728..aa0063f 100644 --- a/home_config/zellij/config.kdl +++ b/home_config/zellij/config.kdl @@ -1,7 +1,3 @@ -// -// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /home/lkraven/.config/zellij/config.kdl.bak.1 -// - keybinds clear-defaults=true { locked { bind "Ctrl g" { SwitchToMode "normal"; } diff --git a/home_root/.aider.conf.yml b/home_root/.aider.conf.yml index c563d6b..1b953fa 100644 --- a/home_root/.aider.conf.yml +++ b/home_root/.aider.conf.yml @@ -1,459 +1,8 @@ -########################################################## -# Sample .aider.conf.yml -# This file lists *all* the valid configuration entries. -# Place in your home dir, or at the root of your git repo. -########################################################## - -# Note: You can only put OpenAI and Anthropic API keys in the yaml -# config file. Keys for all APIs can be stored in a .env file -# https://aider.chat/docs/config/dotenv.html - -########## -# options: - -## show this help message and exit -#help: xxx - -############# -# Main model: - -## Specify the model to use for the main chat -#model: xxx +# Aider config — active settings only (full option reference: aider.chat/docs/config.html) model: ollama_chat/qwq-32b-iq6kl -######################## -# API Keys and settings: - -## Specify the OpenAI API key -#openai-api-key: xxx - -## Specify the Anthropic API key -#anthropic-api-key: xxx - -## Specify the api base url -#openai-api-base: xxx - -## (deprecated, use --set-env OPENAI_API_TYPE=) -#openai-api-type: xxx - -## (deprecated, use --set-env OPENAI_API_VERSION=) -#openai-api-version: xxx - -## (deprecated, use --set-env OPENAI_API_DEPLOYMENT_ID=) -#openai-api-deployment-id: xxx - -## (deprecated, use --set-env OPENAI_ORGANIZATION=) -#openai-organization-id: xxx - -## Set an environment variable (to control API settings, can be used multiple times) -#set-env: xxx -## Specify multiple values like this: -#set-env: -# - xxx -# - yyy -# - zzz - set-env: - OLLAMA_API_BASE=http://10.250.50.51:11434 - -## Set an API key for a provider (eg: --api-key provider= sets PROVIDER_API_KEY=) -#api-key: xxx -## Specify multiple values like this: -#api-key: -# - xxx -# - yyy -# - zzz - -################# -# Model settings: - -## List known models which match the (partial) MODEL name -#list-models: xxx - -## Specify a file with aider model settings for unknown models -#model-settings-file: .aider.model.settings.yml - -## Specify a file with context window and costs for unknown models -#model-metadata-file: .aider.model.metadata.json - -## Add a model alias (can be used multiple times) -#alias: xxx -## Specify multiple values like this: -#alias: -# - xxx -# - yyy -# - zzz - alias: - "o-qwq:ollama_chat/qwq-32b-iq6kl" - -## Set the reasoning_effort API parameter (default: not set) -#reasoning-effort: xxx - -## Set the thinking token budget for models that support it (default: not set) -#thinking-tokens: xxx - -## Verify the SSL cert when connecting to models (default: True) -#verify-ssl: true - -## Timeout in seconds for API calls (default: None) -#timeout: xxx - -## Specify what edit format the LLM should use (default depends on model) -#edit-format: xxx - -## Use architect edit format for the main chat -#architect: false - -## Specify the model to use for commit messages and chat history summarization (default depends on --model) -#weak-model: xxx - -## Specify the model to use for editor tasks (default depends on --model) -#editor-model: xxx - -## Specify the edit format for the editor model (default: depends on editor model) -#editor-edit-format: xxx - -## Only work with models that have meta-data available (default: True) -#show-model-warnings: true - -## Soft limit on tokens for chat history, after which summarization begins. If unspecified, defaults to the model's max_chat_history_tokens. -#max-chat-history-tokens: xxx - -################# -# Cache settings: - -## Enable caching of prompts (default: False) -#cache-prompts: false - -## Number of times to ping at 5min intervals to keep prompt cache warm (default: 0) -#cache-keepalive-pings: false - -################### -# Repomap settings: - -## Suggested number of tokens to use for repo map, use 0 to disable -#map-tokens: xxx - -## Control how often the repo map is refreshed. Options: auto, always, files, manual (default: auto) -#map-refresh: auto - -## Multiplier for map tokens when no files are specified (default: 2) -#map-multiplier-no-files: true - -################ -# History Files: - -## Specify the chat input history file (default: .aider.input.history) -#input-history-file: .aider.input.history - -## Specify the chat history file (default: .aider.chat.history.md) -#chat-history-file: .aider.chat.history.md - -## Restore the previous chat history messages (default: False) -#restore-chat-history: false - -## Log the conversation with the LLM to this file (for example, .aider.llm.history) -#llm-history-file: xxx - -################## -# Output settings: - -## Use colors suitable for a dark terminal background (default: False) -#dark-mode: false - -## Use colors suitable for a light terminal background (default: False) -#light-mode: false - -## Enable/disable pretty, colorized output (default: True) -#pretty: true - -## Enable/disable streaming responses (default: True) -#stream: true - -## Set the color for user input (default: #00cc00) -#user-input-color: #00cc00 - -## Set the color for tool output (default: None) -#tool-output-color: "xxx" - -## Set the color for tool error messages (default: #FF2222) -#tool-error-color: #FF2222 - -## Set the color for tool warning messages (default: #FFA500) -#tool-warning-color: #FFA500 - -## Set the color for assistant output (default: #0088ff) -#assistant-output-color: #0088ff - -## Set the color for the completion menu (default: terminal's default text color) -#completion-menu-color: "xxx" - -## Set the background color for the completion menu (default: terminal's default background color) -#completion-menu-bg-color: "xxx" - -## Set the color for the current item in the completion menu (default: terminal's default background color) -#completion-menu-current-color: "xxx" - -## Set the background color for the current item in the completion menu (default: terminal's default text color) -#completion-menu-current-bg-color: "xxx" - -## Set the markdown code theme (default: default, other options include monokai, solarized-dark, solarized-light, or a Pygments builtin style, see https://pygments.org/styles for available themes) -#code-theme: default - -## Show diffs when committing changes (default: False) -#show-diffs: false - -############### -# Git settings: - -## Enable/disable looking for a git repo (default: True) -#git: true - -## Enable/disable adding .aider* to .gitignore (default: True) -#gitignore: true - -## Specify the aider ignore file (default: .aiderignore in git root) -#aiderignore: .aiderignore - -## Only consider files in the current subtree of the git repository -#subtree-only: false - -## Enable/disable auto commit of LLM changes (default: True) -#auto-commits: true - -## Enable/disable commits when repo is found dirty (default: True) -#dirty-commits: true - -## Attribute aider code changes in the git author name (default: True) -#attribute-author: true - -## Attribute aider commits in the git committer name (default: True) -#attribute-committer: true - -## Prefix commit messages with 'aider: ' if aider authored the changes (default: False) -#attribute-commit-message-author: false - -## Prefix all commit messages with 'aider: ' (default: False) -#attribute-commit-message-committer: false - -## Commit all pending changes with a suitable commit message, then exit -#commit: false - -## Specify a custom prompt for generating commit messages -#commit-prompt: xxx - -## Perform a dry run without modifying files (default: False) -#dry-run: false - -## Skip the sanity check for the git repository (default: False) -#skip-sanity-check-repo: false - -## Enable/disable watching files for ai coding comments (default: False) -#watch-files: false - -######################## -# Fixing and committing: - -## Lint and fix provided files, or dirty files if none provided -#lint: false - -## Specify lint commands to run for different languages, eg: "python: flake8 --select=..." (can be used multiple times) -#lint-cmd: xxx -## Specify multiple values like this: -#lint-cmd: -# - xxx -# - yyy -# - zzz - -## Enable/disable automatic linting after changes (default: True) -#auto-lint: true - -## Specify command to run tests -#test-cmd: xxx - -## Enable/disable automatic testing after changes (default: False) -#auto-test: false - -## Run tests, fix problems found and then exit -#test: false - -############ -# Analytics: - -## Enable/disable analytics for current session (default: random) -#analytics: xxx - -## Specify a file to log analytics events -#analytics-log: xxx - -## Permanently disable analytics -#analytics-disable: false - -############ -# Upgrading: - -## Check for updates and return status in the exit code -#just-check-update: false - -## Check for new aider versions on launch -#check-update: true - -## Show release notes on first run of new version (default: None, ask user) -#show-release-notes: xxx - -## Install the latest version from the main branch -#install-main-branch: false - -## Upgrade aider to the latest version from PyPI -#upgrade: false - -## Show the version number and exit -#version: xxx - -######## -# Modes: - -## Specify a single message to send the LLM, process reply then exit (disables chat mode) -#message: xxx - -## Specify a file containing the message to send the LLM, process reply, then exit (disables chat mode) -#message-file: xxx - -## Run aider in your browser (default: False) -#gui: false - -## Enable automatic copy/paste of chat between aider and web UI (default: False) -#copy-paste: false - -## Apply the changes from the given file instead of running the chat (debug) -#apply: xxx - -## Apply clipboard contents as edits using the main model's editor format -#apply-clipboard-edits: false - -## Do all startup activities then exit before accepting user input (debug) -#exit: false - -## Print the repo map and exit (debug) -#show-repo-map: false - -## Print the system prompts and exit (debug) -#show-prompts: false - -################# -# Voice settings: - -## Audio format for voice recording (default: wav). webm and mp3 require ffmpeg -#voice-format: wav - -## Specify the language for voice using ISO 639-1 code (default: auto) -#voice-language: en - -## Specify the input device name for voice recording -#voice-input-device: xxx - -################# -# Other settings: - -## specify a file to edit (can be used multiple times) -#file: xxx -## Specify multiple values like this: -#file: -# - xxx -# - yyy -# - zzz - -## specify a read-only file (can be used multiple times) -#read: xxx -## Specify multiple values like this: -#read: -# - xxx -# - yyy -# - zzz - -## Use VI editing mode in the terminal (default: False) -#vim: false - -## Specify the language to use in the chat (default: None, uses system settings) -#chat-language: xxx - -## Always say yes to every confirmation -#yes-always: false - -## Enable verbose output -#verbose: false - -## Load and execute /commands from a file on launch -#load: xxx - -## Specify the encoding for input and output (default: utf-8) -#encoding: utf-8 - -## Line endings to use when writing files (default: platform) -#line-endings: platform - -## Specify the config file (default: search for .aider.conf.yml in git root, cwd or home directory) -#config: xxx - -## Specify the .env file to load (default: .env in git root) -#env-file: .env - -## Enable/disable suggesting shell commands (default: True) -#suggest-shell-commands: true - -## Enable/disable fancy input with history and completion (default: True) -#fancy-input: true - -## Enable/disable multi-line input mode with Meta-Enter to submit (default: False) -#multiline: false - -## Enable/disable terminal bell notifications when LLM responses are ready (default: False) -#notifications: false - -## Specify a command to run for notifications instead of the terminal bell. If not specified, a default command for your OS may be used. -#notifications-command: xxx - -## Enable/disable detection and offering to add URLs to chat (default: True) -#detect-urls: true - -## Specify which editor to use for the /editor command -#editor: xxx - -############################ -# Deprecated model settings: - -## Use claude-3-opus-20240229 model for the main chat (deprecated, use --model) -#opus: false - -## Use anthropic/claude-3-7-sonnet-20250219 model for the main chat (deprecated, use --model) -#sonnet: false - -## Use claude-3-5-haiku-20241022 model for the main chat (deprecated, use --model) -#haiku: false - -## Use gpt-4-0613 model for the main chat (deprecated, use --model) -#4: false - -## Use gpt-4o model for the main chat (deprecated, use --model) -#4o: false - -## Use gpt-4o-mini model for the main chat (deprecated, use --model) -#mini: false - -## Use gpt-4-1106-preview model for the main chat (deprecated, use --model) -#4-turbo: false - -## Use gpt-3.5-turbo model for the main chat (deprecated, use --model) -#35turbo: false - -## Use deepseek/deepseek-chat model for the main chat (deprecated, use --model) -#deepseek: false - -## Use o1-mini model for the main chat (deprecated, use --model) -#o1-mini: false - -## Use o1-preview model for the main chat (deprecated, use --model) -#o1-preview: false - diff --git a/home_root/.zshrc b/home_root/.zshrc index 8cbd92a..469804d 100644 --- a/home_root/.zshrc +++ b/home_root/.zshrc @@ -1,7 +1,6 @@ #extend path path=(~/bin $path) path=(~/.local/bin $path) -path=(~/.cache/lk-tools/fzf/bin $path) # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] @@ -130,22 +129,25 @@ fi export STM32_PRG_PATH=/Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin -# bun completions -[ -s "/home/lkraven/.bun/_bun" ] && source "/home/lkraven/.bun/_bun" +# bun (only if installed) +if [ -d "$HOME/.bun" ]; then + export BUN_INSTALL="$HOME/.bun" + export PATH="$BUN_INSTALL/bin:$PATH" + [ -s "$BUN_INSTALL/_bun" ] && source "$BUN_INSTALL/_bun" +fi -# bun -export BUN_INSTALL="$HOME/.bun" -export PATH="$BUN_INSTALL/bin:$PATH" - -# >>> grok installer >>> -export PATH="$HOME/.grok/bin:$PATH" -fpath=(~/.grok/completions/zsh $fpath) -autoload -Uz compinit && compinit -C -# <<< grok installer <<< +# grok (only if installed; avoids a second compinit when absent) +if [ -d "$HOME/.grok" ]; then + export PATH="$HOME/.grok/bin:$PATH" + fpath=(~/.grok/completions/zsh $fpath) + autoload -Uz compinit && compinit -C +fi # dotnet export DOTNET_ROOT="$HOME/.dotnet" export PATH="$DOTNET_ROOT:$PATH" -# kimi-code -export PATH="/home/lkraven/.kimi-code/bin:$PATH" +# kimi-code (only if installed) +if [ -d "$HOME/.kimi-code" ]; then + export PATH="$HOME/.kimi-code/bin:$PATH" +fi