Update to remove not used tools
This commit is contained in:
parent
9408fbb3a1
commit
b65d9666ea
@ -4,7 +4,7 @@ This repo is a collection of personal config files deployed via GNU Stow.
|
||||
|
||||
## How it works
|
||||
|
||||
- Each subdirectory is a **stow package**: `bash`, `zsh`, `git`, `ghostty`, `starship`, `tmux`, `lazygit`, `zed`, `opencode`.
|
||||
- Each subdirectory is a **stow package**: `bash`, `zsh`, `git`, `starship`.
|
||||
- Directory structure mirrors `$HOME` (e.g. `git/.gitconfig` → `~/.gitconfig`).
|
||||
|
||||
## Commands
|
||||
@ -36,7 +36,7 @@ cp ~/.<configfile> <name>/
|
||||
|
||||
## Toolchain auto-installed by setup.sh
|
||||
|
||||
`setup.sh` installs these tools to `~/.local/bin` if not already present — do not add manual install steps for them: **zinit** (zsh plugin manager), **zoxide** (smart cd), **fzf**, **bat**, **eza**, **delta**, **tmux**, **lazygit**, **ripgrep**.
|
||||
`setup.sh` installs these tools to `~/.local/bin` if not already present — do not add manual install steps for them: **zinit** (zsh plugin manager), **zoxide** (smart cd), **fzf**, **bat**, **eza**, **delta**, **ripgrep**.
|
||||
|
||||
## Theming convention
|
||||
|
||||
@ -48,6 +48,5 @@ All tools are themed with **Gruvbox Dark Hard**. When adding config for a new to
|
||||
- `.bashrc` sources `~/.bash_aliases`; `.zshrc` sources `~/.zsh_aliases`.
|
||||
- **zoxide** replaces `cd` for directory jumping (frecency-based, auto-tracked via chpwd hook). `j` alias for `zoxide cd`.
|
||||
- **Sensitive files are gitignored**: `.netrc`, SSH keys (`id_rsa*`, `known_hosts`), gradle caches.
|
||||
- The `opencode/` package stows OpenCode's own config (`~/.config/opencode/`). Do not treat it as a repo instruction file — that file is `AGENTS.md` at the repo root.
|
||||
- No build, test, lint, or typecheck steps — this is pure config.
|
||||
- Backups of pre-existing real files are created at `~/.dotfiles-backup-YYYYMMDD-HHMMSS` before stowing.
|
||||
|
||||
@ -9,12 +9,8 @@ Personal dotfiles managed with GNU Stow. Themed with **Gruvbox Dark Hard**.
|
||||
| `bash` | Bash configuration |
|
||||
| `zsh` | Zsh configuration with zinit plugin manager |
|
||||
| `git` | Git configuration with delta pager |
|
||||
| `ghostty` | Ghostty terminal config |
|
||||
| `ssh` | SSH client config |
|
||||
| `starship` | Cross-shell prompt |
|
||||
| `tmux` | Terminal multiplexer config |
|
||||
| `lazygit` | Git TUI config |
|
||||
| `zed` | Zed editor config |
|
||||
| `opencode` | OpenCode AI config |
|
||||
|
||||
## Quick Start
|
||||
|
||||
@ -42,8 +38,6 @@ Personal dotfiles managed with GNU Stow. Themed with **Gruvbox Dark Hard**.
|
||||
- **bat** (syntax-highlighted cat)
|
||||
- **eza** (modern ls)
|
||||
- **delta** (better git diff)
|
||||
- **tmux** (terminal multiplexer)
|
||||
- **lazygit** (git TUI)
|
||||
- **ripgrep** (fast grep)
|
||||
|
||||
## Theming
|
||||
|
||||
@ -116,7 +116,7 @@ if ! shopt -oq posix; then
|
||||
fi
|
||||
fi
|
||||
|
||||
export PATH=/home/mikjoh/.local/bin:/usr/local/go/bin:$PATH
|
||||
export PATH=$HOME/.local/bin:/usr/local/go/bin:$PATH
|
||||
|
||||
. "$HOME/.atuin/bin/env"
|
||||
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
theme = "Gruvbox Dark Hard"
|
||||
font-family = "JetBrainsMono Nerd Font"
|
||||
font-size = 11
|
||||
window-padding-x = 8
|
||||
window-padding-y = 8
|
||||
scrollback-limit = 10000
|
||||
|
||||
shell-integration = zsh
|
||||
background-opacity = 0.95
|
||||
@ -1,7 +1,7 @@
|
||||
# This is Git's per-user configuration file.
|
||||
[user]
|
||||
name = Mikael Johansson
|
||||
email = mikael@thematrix.se
|
||||
name = Tyra Johansson
|
||||
email = tyra@thematrix.se
|
||||
|
||||
[core]
|
||||
editor = nano
|
||||
@ -22,7 +22,7 @@
|
||||
defaultBranch = main
|
||||
|
||||
[safe]
|
||||
directory = /tank/docker
|
||||
directory = /mnt/c/Users/tyra
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
gui:
|
||||
theme:
|
||||
lightTheme: false
|
||||
activeBorderColor:
|
||||
- '#d3869b'
|
||||
- bold
|
||||
inactiveBorderColor:
|
||||
- '#7c6f64'
|
||||
searchingActiveBorderColor:
|
||||
- '#fabd2f'
|
||||
- bold
|
||||
optionsTextColor:
|
||||
- '#83a598'
|
||||
selectedLineBgColor:
|
||||
- '#3c3836'
|
||||
cherryPickedCommitBgColor:
|
||||
- '#d3869b'
|
||||
cherryPickedCommitFgColor:
|
||||
- '#1d2021'
|
||||
unstagedChangesColor:
|
||||
- '#fb4934'
|
||||
defaultFgColor:
|
||||
- '#ebdbb2'
|
||||
@ -1,9 +0,0 @@
|
||||
# Claude-Mem Memory Context
|
||||
|
||||
<claude-mem-context>
|
||||
# Memory Context from Past Sessions
|
||||
|
||||
*No context yet. Complete your first session and context will appear here.*
|
||||
|
||||
Use claude-mem search tools for manual memory queries.
|
||||
</claude-mem-context>
|
||||
@ -1,20 +0,0 @@
|
||||
---
|
||||
description: High-level system design and architectural analysis.
|
||||
mode: primary
|
||||
model: ollama-local/qwen3.5:9b #anthropic/claude-3-5-sonnet
|
||||
temperature: 0.2
|
||||
tools:
|
||||
write: true
|
||||
edit: true
|
||||
bash: true
|
||||
permission:
|
||||
edit: allow
|
||||
bash:
|
||||
"*": ask
|
||||
"git status": allow
|
||||
---
|
||||
# System Architect Instructions
|
||||
You are an expert software architect.
|
||||
- Prioritize modularity and scalability in all suggestions.
|
||||
- When proposing changes, always check existing architectural patterns in the codebase.
|
||||
- Use the `bash` tool to verify dependency trees before suggesting new libraries.
|
||||
@ -1,76 +0,0 @@
|
||||
---
|
||||
description: AI assistant specialized in creating and maintaining API documentation, README files, and technical guides for the x-call project
|
||||
mode: primary
|
||||
model: "github-copilot/claude-sonnet-4.6"
|
||||
temperature: 0.1
|
||||
tools:
|
||||
write: true
|
||||
edit: true
|
||||
bash: true
|
||||
permission:
|
||||
edit: allow
|
||||
bash:
|
||||
"*": ask
|
||||
"git status": allow
|
||||
---
|
||||
You are an expert technical writer for this project.
|
||||
|
||||
## Persona
|
||||
- You specialize in writing clear, developer-friendly documentation for APIs, SDKs, and internal services
|
||||
- You understand the x-call codebase architecture and translate complex features into accessible guides
|
||||
- Your output: API documentation, architecture diagrams, setup guides, and troubleshooting docs that developers can quickly understand and implement
|
||||
|
||||
## Project knowledge
|
||||
- **Tech Stack:** Kotlin, Java, Gradle, Android, Markdown (for documentation), Mermaid (for creating diagrams)
|
||||
- **Repository:** x-call (BMW Group internal telematics application)
|
||||
- **File Structure:**
|
||||
- `app/` – Main Android application source code
|
||||
- `app/src/main/` – Core application code (Kotlin/Java)
|
||||
- `app/src/test/` – Unit tests
|
||||
- `app/src/androidTest/` – Android instrumentation tests
|
||||
- `connection/` – Connection modules (interfaces, joynr, mcp)
|
||||
- `core/` – Core library modules
|
||||
- `remotediagnosis/` – Remote diagnosis functionality
|
||||
- `docs/` – Project documentation
|
||||
|
||||
## Tools you can use
|
||||
- **Build:** `./gradlew build` (compiles Kotlin/Java, runs tests)
|
||||
- **Test:** `./gradlew test` (runs unit tests)
|
||||
- **Android Test:** `./gradlew connectedAndroidTest` (runs instrumentation tests)
|
||||
- **Lint:** `./gradlew lint` (checks code quality)
|
||||
- **Clean:** `./gradlew clean` (removes build artifacts)
|
||||
|
||||
## Standards
|
||||
|
||||
Follow these rules for all documentation you write:
|
||||
|
||||
**Documentation style:**
|
||||
- Use clear, concise language avoiding jargon where possible
|
||||
- Include code examples with proper syntax highlighting
|
||||
- Structure docs with headings, lists, and callout boxes
|
||||
- Keep API docs consistent with project conventions
|
||||
- Reference existing documentation in `docs/` and `README.md`
|
||||
|
||||
**Code examples in docs:**
|
||||
```kotlin
|
||||
// ✅ Good - clear intent, proper error handling
|
||||
fun getUserById(id: String): User {
|
||||
if (id.isBlank()) throw IllegalArgumentException("User ID required")
|
||||
return userRepository.findById(id) ?: throw NotFoundException()
|
||||
}
|
||||
|
||||
// ❌ Bad - unclear, missing validation
|
||||
fun getUser(x) {
|
||||
return userRepository.find(x)
|
||||
}
|
||||
```
|
||||
|
||||
**Naming conventions:**
|
||||
- Functions: camelCase (`getUserData`, `fetchTelemetry`)
|
||||
- Classes: PascalCase (`UserService`, `TelemetryController`)
|
||||
- Constants: UPPER_SNAKE_CASE (`API_KEY`, `MAX_RETRIES`)
|
||||
|
||||
## Boundaries
|
||||
- ✅ **Always:** Write to `docs/`, follow markdown best practices, keep docs in sync with code changes, reference CHANGELOG files
|
||||
- ⚠️ **Ask first:** Major documentation restructuring, adding new doc sections, API contract changes, modifying README.md
|
||||
- 🚫 **Never:** Commit internal URLs, remove existing documentation without approval, modify source code logic, edit `build/`
|
||||
@ -1,19 +0,0 @@
|
||||
---
|
||||
description: Reviews code for quality and best practices
|
||||
mode: subagent
|
||||
kmodel: openai/gpt-5.3-codex
|
||||
temperature: 0.1
|
||||
tools:
|
||||
write: false
|
||||
edit: false
|
||||
bash: false
|
||||
---
|
||||
|
||||
You are in code review mode. Focus on:
|
||||
|
||||
- Code quality and best practices
|
||||
- Potential bugs and edge cases
|
||||
- Performance implications
|
||||
- Security considerations
|
||||
|
||||
Provide constructive feedback without making direct changes.
|
||||
@ -1,20 +0,0 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"plugin": [
|
||||
"opencode-copilot-auth@0.0.9"
|
||||
],
|
||||
"provider": {
|
||||
"ollama-local": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "Ollama Local",
|
||||
"options": {
|
||||
"baseURL": "http://localhost:11434/v1"
|
||||
},
|
||||
"models": {
|
||||
"gemma4:e2b": {
|
||||
"name": "gemma4:e2b"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1,16 +0,0 @@
|
||||
---
|
||||
name: python-runner
|
||||
description: |-
|
||||
Expert in creating, documenting, and executing standalone Python 3 scripts.
|
||||
Use this skill when the user asks to "automate a task," "process a CSV," or "run a local script."
|
||||
Examples:
|
||||
- user: "Write a script to clean this data" -> Create script with logging and error handling.
|
||||
- user: "How do I run this?" -> Provide the exact 'python3 main.py' command.
|
||||
---
|
||||
|
||||
# Python Runner Instructions
|
||||
When this skill is active, follow these rules:
|
||||
- **Environment**: Always assume Python 3.10+ is available.
|
||||
- **Documentation**: Every script must include a docstring at the top explaining its purpose.
|
||||
- **Execution**: Provide the terminal command to run the script immediately after writing the code.
|
||||
- **Safety**: Do not use `os.system()` for user-provided strings; use `subprocess` instead.
|
||||
@ -1,4 +0,0 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/tui.json",
|
||||
"theme": "dracula"
|
||||
}
|
||||
37
setup.sh
37
setup.sh
@ -8,7 +8,7 @@ set -e
|
||||
# Configuration
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
BACKUP_DIR="$HOME/.dotfiles-backup-$(date +%Y%m%d-%H%M%S)"
|
||||
AVAILABLE_PACKAGES=(bash zsh git ghostty ssh starship tmux lazygit zed opencode)
|
||||
AVAILABLE_PACKAGES=(bash zsh git ssh starship)
|
||||
|
||||
# Colors for output
|
||||
RED='\033[0;31m'
|
||||
@ -167,41 +167,6 @@ install_toolchain() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install tmux (terminal multiplexer) if missing
|
||||
if ! command -v tmux &> /dev/null; then
|
||||
if [[ "$DRY_RUN" == "true" ]]; then
|
||||
log_info "[DRY RUN] Would install tmux"
|
||||
else
|
||||
log_info "Installing tmux..."
|
||||
if command -v apt-get &> /dev/null; then
|
||||
sudo apt-get install -y tmux 2>/dev/null || true
|
||||
fi
|
||||
if ! command -v tmux &> /dev/null; then
|
||||
curl -sL "https://github.com/nelsonenzo/tmux-appimage/releases/download/3.5a/tmux.appimage" -o "$bin_dir/tmux"
|
||||
chmod +x "$bin_dir/tmux"
|
||||
fi
|
||||
if infocmp xterm-ghostty &>/dev/null; then
|
||||
mkdir -p "$HOME/.terminfo"
|
||||
infocmp -x xterm-ghostty | tic -o "$HOME/.terminfo" -x - &>/dev/null || true
|
||||
fi
|
||||
log_success "tmux installed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install lazygit (TUI for git) if missing
|
||||
if ! command -v lazygit &> /dev/null; then
|
||||
if [[ "$DRY_RUN" == "true" ]]; then
|
||||
log_info "[DRY RUN] Would install lazygit"
|
||||
else
|
||||
log_info "Installing lazygit..."
|
||||
local lg_ver
|
||||
lg_ver=$(curl -s https://api.github.com/repos/jesseduffield/lazygit/releases/latest | grep -oP '"tag_name": "\K[^"]+')
|
||||
curl -sL "https://github.com/jesseduffield/lazygit/releases/download/${lg_ver}/lazygit_${lg_ver#v}_Linux_x86_64.tar.gz" -o /tmp/lazygit.tar.gz
|
||||
tar xzf /tmp/lazygit.tar.gz -C /tmp/
|
||||
cp /tmp/lazygit "$bin_dir/"
|
||||
log_success "lazygit installed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install starship (cross-shell prompt) if missing
|
||||
if ! command -v starship &> /dev/null; then
|
||||
|
||||
@ -8,20 +8,4 @@ Host *
|
||||
ServerAliveInterval 60
|
||||
ServerAliveCountMax 3
|
||||
|
||||
# Three
|
||||
Host morpheus
|
||||
HostName 10.0.10.8
|
||||
User mikjoh
|
||||
Host unifi-os-server
|
||||
HostName 10.0.10.9
|
||||
User mikjoh
|
||||
Host ns2
|
||||
HostName 10.0.10.16
|
||||
User mikjoh
|
||||
Host three
|
||||
HostName 10.0.40.11
|
||||
User mikjoh
|
||||
Host hassio
|
||||
HostName 10.0.20.41
|
||||
User hassio
|
||||
|
||||
# ssh servers
|
||||
@ -1,34 +0,0 @@
|
||||
# Basic tmux configuration
|
||||
|
||||
# Mouse support (scroll, resize panes, select panes)
|
||||
set -g mouse on
|
||||
|
||||
# Terminal type for 256 color support
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ga terminal-overrides ",*256col*:Tc"
|
||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q]'
|
||||
|
||||
# Scrollback buffer
|
||||
set -g history-limit 10000
|
||||
|
||||
# Start window numbering at 1 (instead of 0)
|
||||
set -g base-index 1
|
||||
set -g pane-base-index 1
|
||||
|
||||
# Key bindings
|
||||
bind | split-window -h
|
||||
bind - split-window -v
|
||||
bind r source-file ~/.tmux.conf \; display "Reloaded config!"
|
||||
|
||||
# Status bar: short hostname, session name, window list (Gruvbox Dark Hard)
|
||||
set -g status-bg "#1d2021"
|
||||
set -g status-fg "#ebdbb2"
|
||||
set -g status-left "#[fg=#1d2021,bg=#d3869b,bold] #S "
|
||||
set -g status-right "#[fg=#ebdbb2,bg=#3c3836] #H "
|
||||
set -g window-status-current-format "#[fg=#1d2021,bg=#fe8019,bold] #I:#W "
|
||||
set -g window-status-format "#[fg=#a89984,bg=#3c3836] #I:#W "
|
||||
set -g status-interval 5
|
||||
|
||||
# Activity monitoring
|
||||
set -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
@ -8,7 +8,7 @@ set -e # Exit on any error
|
||||
|
||||
# Configuration
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
AVAILABLE_PACKAGES=(bash zsh git ghostty starship tmux lazygit zed opencode)
|
||||
AVAILABLE_PACKAGES=(bash zsh git ssh starship)
|
||||
|
||||
# Colors for output
|
||||
RED='\033[0;31m'
|
||||
|
||||
@ -1,43 +0,0 @@
|
||||
{
|
||||
"project_panel": {
|
||||
"dock": "right"
|
||||
},
|
||||
"outline_panel": {
|
||||
"dock": "right"
|
||||
},
|
||||
"terminal": {
|
||||
"dock": "bottom"
|
||||
},
|
||||
"debugger": {
|
||||
"dock": "left"
|
||||
},
|
||||
"git_panel": {
|
||||
"dock": "right"
|
||||
},
|
||||
"collaboration_panel": {
|
||||
"dock": "right"
|
||||
},
|
||||
"agent_servers": {
|
||||
"github-copilot-cli": {
|
||||
"type": "registry"
|
||||
}
|
||||
},
|
||||
"base_keymap": "VSCode",
|
||||
"icon_theme": {
|
||||
"mode": "system",
|
||||
"light": "Zed (Default)",
|
||||
"dark": "Zed (Default)"
|
||||
},
|
||||
"ui_font_size": 16,
|
||||
"buffer_font_size": 15,
|
||||
"theme": {
|
||||
"mode": "system",
|
||||
"light": "Ayu Light",
|
||||
"dark": "Gruvbox Dark"
|
||||
},
|
||||
"languages": {
|
||||
"Proto": {
|
||||
"language_servers": ["buf"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,15 +1,6 @@
|
||||
alias use-bash="exec bash"
|
||||
alias use-zsh="exec zsh"
|
||||
|
||||
# Docker aliases
|
||||
alias dc="docker compose"
|
||||
alias cscli="docker exec -t crowdsec cscli"
|
||||
alias swag="docker exec -t swag"
|
||||
alias olcli="docker exec -it ollama"
|
||||
|
||||
# Lazy git
|
||||
alias lg="lazygit"
|
||||
|
||||
# bat / batcat compatibility (Debian/Ubuntu installs bat as batcat)
|
||||
if ! command -v bat &>/dev/null && command -v batcat &>/dev/null; then
|
||||
alias bat="batcat"
|
||||
|
||||
@ -86,7 +86,7 @@ if [ -f ~/.zsh_aliases ]; then
|
||||
fi
|
||||
|
||||
# opencode
|
||||
export PATH=/home/mikjoh/.opencode/bin:$PATH
|
||||
export PATH=$HOME/.opencode/bin:$PATH
|
||||
|
||||
# =========================
|
||||
# Atuin - shell history
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user