Updating configuration adding ssh etc.
This commit is contained in:
parent
c878e5e35f
commit
9408fbb3a1
@ -1,8 +1,9 @@
|
|||||||
theme = GruvboxDarkHard
|
theme = "Gruvbox Dark Hard"
|
||||||
font-family = JetBrainsMono Nerd Font
|
font-family = "JetBrainsMono Nerd Font"
|
||||||
font-size = 10
|
font-size = 11
|
||||||
window-padding-x = 8
|
window-padding-x = 8
|
||||||
window-padding-y = 8
|
window-padding-y = 8
|
||||||
scrollback-limit = 10000
|
scrollback-limit = 10000
|
||||||
|
|
||||||
shell-integration = zsh
|
shell-integration = zsh
|
||||||
|
background-opacity = 0.95
|
||||||
|
|||||||
@ -1,25 +1,19 @@
|
|||||||
---
|
---
|
||||||
description: Reviews code for quality and best practices
|
description: Reviews code for quality and best practices
|
||||||
mode: subagent
|
mode: subagent
|
||||||
model: ollama-local/qwen3.5:9b #openai/gpt-5.3-codex
|
kmodel: openai/gpt-5.3-codex
|
||||||
temperature: 0.1
|
temperature: 0.1
|
||||||
tools:
|
tools:
|
||||||
write: false
|
write: false
|
||||||
edit: false
|
edit: false
|
||||||
bash: true
|
bash: false
|
||||||
permission:
|
|
||||||
bash:
|
|
||||||
"git diff": allow
|
|
||||||
"grep *": allow
|
|
||||||
"*": deny
|
|
||||||
---
|
---
|
||||||
# Code Reviewer Instructions
|
|
||||||
You are a meticulous code reviewer agent that provides constructive feedback on code changes.
|
You are in code review mode. Focus on:
|
||||||
|
|
||||||
- Code quality and best practices
|
- Code quality and best practices
|
||||||
- Potential bugs and edge cases
|
- Potential bugs and edge cases
|
||||||
- Performance issues
|
- Performance implications
|
||||||
- Security considerations and vunerabilities
|
- Security considerations
|
||||||
- Logic errors and code readability
|
|
||||||
- Do NOT make direct edits to files.
|
Provide constructive feedback without making direct changes.
|
||||||
- Provide feedback in a structured bulleted list.
|
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://opencode.ai/config.json",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
"plugin": [],
|
"plugin": [
|
||||||
|
"opencode-copilot-auth@0.0.9"
|
||||||
|
],
|
||||||
"provider": {
|
"provider": {
|
||||||
"ollama-local": {
|
"ollama-local": {
|
||||||
"npm": "@ai-sdk/openai-compatible",
|
"npm": "@ai-sdk/openai-compatible",
|
||||||
@ -9,8 +11,8 @@
|
|||||||
"baseURL": "http://localhost:11434/v1"
|
"baseURL": "http://localhost:11434/v1"
|
||||||
},
|
},
|
||||||
"models": {
|
"models": {
|
||||||
"qwen3.5:9b": {
|
"gemma4:e2b": {
|
||||||
"name": "qwen3.5:9b"
|
"name": "gemma4:e2b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
setup.sh
13
setup.sh
@ -8,7 +8,7 @@ set -e
|
|||||||
# Configuration
|
# Configuration
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
BACKUP_DIR="$HOME/.dotfiles-backup-$(date +%Y%m%d-%H%M%S)"
|
BACKUP_DIR="$HOME/.dotfiles-backup-$(date +%Y%m%d-%H%M%S)"
|
||||||
AVAILABLE_PACKAGES=(bash zsh git ghostty starship tmux lazygit zed opencode)
|
AVAILABLE_PACKAGES=(bash zsh git ghostty ssh starship tmux lazygit zed opencode)
|
||||||
|
|
||||||
# Colors for output
|
# Colors for output
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
@ -203,6 +203,17 @@ install_toolchain() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install starship (cross-shell prompt) if missing
|
||||||
|
if ! command -v starship &> /dev/null; then
|
||||||
|
if [[ "$DRY_RUN" == "true" ]]; then
|
||||||
|
log_info "[DRY RUN] Would install starship"
|
||||||
|
else
|
||||||
|
log_info "Installing starship..."
|
||||||
|
curl -sS https://starship.rs/install.sh | sh -s -- --force --bin-dir "$bin_dir"
|
||||||
|
log_success "starship installed"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Install ripgrep (fast grep alternative) if missing
|
# Install ripgrep (fast grep alternative) if missing
|
||||||
if ! command -v rg &> /dev/null; then
|
if ! command -v rg &> /dev/null; then
|
||||||
if [[ "$DRY_RUN" == "true" ]]; then
|
if [[ "$DRY_RUN" == "true" ]]; then
|
||||||
|
|||||||
27
ssh/.ssh/config
Normal file
27
ssh/.ssh/config
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Defaults for all hosts
|
||||||
|
Host *
|
||||||
|
SetEnv TERM=xterm-256color
|
||||||
|
ControlMaster auto
|
||||||
|
ControlPath ~/.ssh/control-%r@%h:%p
|
||||||
|
ControlPersist 10m
|
||||||
|
AddKeysToAgent yes
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,48 +1,91 @@
|
|||||||
"$schema" = 'https://starship.rs/config-schema.json'
|
"$schema" = 'https://starship.rs/config-schema.json'
|
||||||
|
|
||||||
format = """
|
format = """
|
||||||
[](#d3869b)\
|
[](color_orange)\
|
||||||
|
$os\
|
||||||
$username\
|
$username\
|
||||||
[](bg:#fb4934 fg:#d3869b)\
|
$hostname\
|
||||||
|
[](bg:color_yellow fg:color_orange)\
|
||||||
$directory\
|
$directory\
|
||||||
[](fg:#fb4934 bg:#fe8019)\
|
[](fg:color_yellow bg:color_aqua)\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_status\
|
$git_status\
|
||||||
[](fg:#fe8019 bg:#8ec07c)\
|
[](fg:color_aqua bg:color_blue)\
|
||||||
$c\
|
$c\
|
||||||
$elixir\
|
$cpp\
|
||||||
$elm\
|
$rust\
|
||||||
$golang\
|
$golang\
|
||||||
$haskell\
|
|
||||||
$java\
|
|
||||||
$julia\
|
|
||||||
$maven\
|
|
||||||
$nodejs\
|
$nodejs\
|
||||||
$bun\
|
$bun\
|
||||||
$nim\
|
$php\
|
||||||
$rust\
|
$java\
|
||||||
$scala\
|
$kotlin\
|
||||||
[](fg:#8ec07c bg:#b8bb26)\
|
$haskell\
|
||||||
|
$python\
|
||||||
|
[](fg:color_blue bg:color_bg3)\
|
||||||
$docker_context\
|
$docker_context\
|
||||||
[](fg:#b8bb26 bg:#665c54)\
|
$conda\
|
||||||
|
$pixi\
|
||||||
|
[](fg:color_bg3 bg:color_bg1)\
|
||||||
$time\
|
$time\
|
||||||
[ ](fg:#665c54)\
|
[ ](fg:color_bg1)\
|
||||||
$cmd_duration\
|
$line_break$character"""
|
||||||
"""
|
|
||||||
|
palette = 'gruvbox_dark'
|
||||||
|
|
||||||
|
[palettes.gruvbox_dark]
|
||||||
|
color_fg0 = '#fbf1c7'
|
||||||
|
color_bg1 = '#3c3836'
|
||||||
|
color_bg3 = '#665c54'
|
||||||
|
color_blue = '#458588'
|
||||||
|
color_aqua = '#689d6a'
|
||||||
|
color_green = '#98971a'
|
||||||
|
color_orange = '#d65d0e'
|
||||||
|
color_purple = '#b16286'
|
||||||
|
color_red = '#cc241d'
|
||||||
|
color_yellow = '#d79921'
|
||||||
|
|
||||||
|
[os]
|
||||||
|
disabled = false
|
||||||
|
style = "bg:color_orange fg:color_fg0"
|
||||||
|
|
||||||
|
[os.symbols]
|
||||||
|
Windows = ""
|
||||||
|
Ubuntu = ""
|
||||||
|
SUSE = ""
|
||||||
|
Raspbian = ""
|
||||||
|
Mint = ""
|
||||||
|
Macos = ""
|
||||||
|
Manjaro = ""
|
||||||
|
Linux = ""
|
||||||
|
Gentoo = ""
|
||||||
|
Fedora = ""
|
||||||
|
Alpine = ""
|
||||||
|
Amazon = ""
|
||||||
|
Android = ""
|
||||||
|
AOSC = ""
|
||||||
|
Arch = ""
|
||||||
|
Artix = ""
|
||||||
|
EndeavourOS = ""
|
||||||
|
CentOS = ""
|
||||||
|
Debian = ""
|
||||||
|
Redhat = ""
|
||||||
|
RedHatEnterprise = ""
|
||||||
|
Pop = ""
|
||||||
|
|
||||||
[username]
|
[username]
|
||||||
show_always = true
|
show_always = true
|
||||||
style_user = "fg:#1d2021 bg:#d3869b"
|
style_user = "bg:color_orange fg:color_fg0"
|
||||||
style_root = "fg:#1d2021 bg:#d3869b"
|
style_root = "bg:color_orange fg:color_fg0"
|
||||||
format = '[$user ]($style)'
|
format = '[ $user ]($style)'
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[os]
|
[hostname]
|
||||||
style = "fg:#1d2021 bg:#d3869b"
|
ssh_only = true
|
||||||
disabled = true
|
style = "bg:color_orange fg:color_fg0"
|
||||||
|
format = '[@$hostname ]($style)'
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
style = "fg:#1d2021 bg:#fb4934"
|
style = "fg:color_fg0 bg:color_yellow"
|
||||||
format = "[ $path ]($style)"
|
format = "[ $path ]($style)"
|
||||||
truncation_length = 3
|
truncation_length = 3
|
||||||
truncation_symbol = "…/"
|
truncation_symbol = "…/"
|
||||||
@ -50,99 +93,101 @@ truncation_symbol = "…/"
|
|||||||
[directory.substitutions]
|
[directory.substitutions]
|
||||||
"Documents" = " "
|
"Documents" = " "
|
||||||
"Downloads" = " "
|
"Downloads" = " "
|
||||||
"Music" = " "
|
"Music" = " "
|
||||||
"Pictures" = " "
|
"Pictures" = " "
|
||||||
|
"Developer" = " "
|
||||||
[c]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[cpp]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[docker_context]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#b8bb26"
|
|
||||||
format = '[ $symbol $context ]($style)'
|
|
||||||
|
|
||||||
[elixir]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[elm]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "fg:#1d2021 bg:#fe8019"
|
style = "bg:color_aqua"
|
||||||
format = '[ $symbol $branch ]($style)'
|
format = '[[ $symbol $branch ](fg:color_fg0 bg:color_aqua)]($style)'
|
||||||
|
|
||||||
[git_status]
|
[git_status]
|
||||||
style = "fg:#1d2021 bg:#fe8019"
|
style = "bg:color_aqua"
|
||||||
format = '[$all_status$ahead_behind ]($style)'
|
format = '[[($all_status$ahead_behind )](fg:color_fg0 bg:color_aqua)]($style)'
|
||||||
|
|
||||||
[golang]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[haskell]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[java]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[julia]
|
|
||||||
symbol = " "
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[maven]
|
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[nodejs]
|
[nodejs]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
style = "bg:color_blue"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
[bun]
|
[bun]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
style = "bg:color_blue"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
[nim]
|
[c]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
style = "bg:color_blue"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
|
[cpp]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:color_blue"
|
||||||
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
[rust]
|
[rust]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
style = "bg:color_blue"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
[scala]
|
[golang]
|
||||||
symbol = " "
|
symbol = ""
|
||||||
style = "fg:#1d2021 bg:#8ec07c"
|
style = "bg:color_blue"
|
||||||
format = '[ $symbol ($version) ]($style)'
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
|
[php]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:color_blue"
|
||||||
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:color_blue"
|
||||||
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
|
[kotlin]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:color_blue"
|
||||||
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:color_blue"
|
||||||
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
|
[python]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:color_blue"
|
||||||
|
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:color_bg3"
|
||||||
|
format = '[[ $symbol( $context) ](fg:#83a598 bg:color_bg3)]($style)'
|
||||||
|
|
||||||
|
[conda]
|
||||||
|
style = "bg:color_bg3"
|
||||||
|
format = '[[ $symbol( $environment) ](fg:#83a598 bg:color_bg3)]($style)'
|
||||||
|
|
||||||
|
[pixi]
|
||||||
|
style = "bg:color_bg3"
|
||||||
|
format = '[[ $symbol( $version)( $environment) ](fg:color_fg0 bg:color_bg3)]($style)'
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
disabled = false
|
disabled = false
|
||||||
time_format = "%R"
|
time_format = "%R"
|
||||||
style = "fg:#1d2021 bg:#665c54"
|
style = "bg:color_bg1"
|
||||||
format = '[ ♥ $time ]($style)'
|
format = '[[ $time ](fg:color_fg0 bg:color_bg1)]($style)'
|
||||||
|
|
||||||
[cmd_duration]
|
[line_break]
|
||||||
min_time = 2000
|
disabled = false
|
||||||
style = "fg:#1d2021"
|
|
||||||
format = " took [$duration]($style) "
|
[character]
|
||||||
|
disabled = false
|
||||||
|
success_symbol = '[](bold fg:color_green)'
|
||||||
|
error_symbol = '[](bold fg:color_red)'
|
||||||
|
vimcmd_symbol = '[](bold fg:color_green)'
|
||||||
|
vimcmd_replace_one_symbol = '[](bold fg:color_purple)'
|
||||||
|
vimcmd_replace_symbol = '[](bold fg:color_purple)'
|
||||||
|
vimcmd_visual_symbol = '[](bold fg:color_yellow)'
|
||||||
|
|||||||
@ -85,6 +85,9 @@ if [ -f ~/.zsh_aliases ]; then
|
|||||||
. ~/.zsh_aliases
|
. ~/.zsh_aliases
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# opencode
|
||||||
|
export PATH=/home/mikjoh/.opencode/bin:$PATH
|
||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
# Atuin - shell history
|
# Atuin - shell history
|
||||||
# =========================
|
# =========================
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user