xonecas.io
56101
Df

dotfiles / commit edffb97

fix: cleanup after re-installing my main linux machine

xonecas2026-10-05 edffb97bb7c568c46ef657bdf5e3e8b4a71c8605 parent 63f394d

8 files changed

README.md+4−5
@@ -6,12 +6,11 @@ Each folder is a config. Symlink it to the path the tool already discovers.
66
77 ## Contents
88
9+- `agents/` — Agents → `~/.agents`
10+- `bash/` — Bash → `~/.bashrc`
11+- `ghostty/` — Ghostty → `~/.config/ghostty/config`
12+- `kitty/` — Kitty → `~/.config/kitty`
913 - `nvim/` — Neovim → `~/.config/nvim`
10-- `ghostty/` — Ghostty → `~/.config/ghostty`
11-- `bash/` — Bash setup files
12-- `hunk/` — Hunk → `~/.config/hunk/config.toml`
13-- `hax/` — Hax agent, skills, prompts, helper scripts → `~/.config/hax`
14-- `pi/` — Pi agent, prompts, extensions → `~/.pi/agent`
1514
1615 ## Usage
1716
agents/AGENTS.md+15−1
@@ -1,9 +1,23 @@
11 # Rules for AGENTS
22
3-- Always return exactly what was asked.
3+Follow all instructions as closely as possible. The instructions are not suggestions and may not be ignored for convenience or speed.
4+
5+- Always return exactly what was asked. Nothing more, nothing less.
6+- Never blindly kill processes, you might kill your own harness process (as it has happened many a times).
7+- Don't blindly run destructive changes, loosing data is unacceptable.
48 - Do not add scope, backwards compatibility or extras without the user explicitly asking.
59 - Do not add tests unless explicitly told to.
10+
11+## Env
12+
613 - Use `gh` for Github operations.
14+- Use the environments `EXA_AI_API_KEY` with curl to search and fetch web content.
15+
16+## Prose
17+
18+1. Prose should almost always be sentences that have a noun and a verb.
19+2. Adjectives should be used only when they are necessary for correct meaning.
20+3. Do not use analogies or metaphors.
721
822 ## Golden rule for coding
923
bash/bashrc+9−14
@@ -1,3 +1,7 @@
1+# User-local binaries, e.g. npm global installs (prefix is ~/.local, see ~/.npmrc).
2+# Set before the interactive guard so non-interactive shells see it too.
3+export PATH="$HOME/.local/bin:$PATH"
4+
15 [[ $- != *i* ]] && return
26
37 export EDITOR=nvim
@@ -11,20 +15,12 @@ alias gc='git commit --verbose'
1115 alias gp='git pull --rebase'
1216 alias gpo='git push origin'
1317 alias nv='nvim'
18+alias sto='cd /mnt/storage'
19+alias rep='cd /mnt/storage/repos'
1420
15-export PATH=$PATH:~/.local/bin
16-export PATH="$(go env GOPATH)/bin:$PATH"
17-
18-# Credentials loaded from ~/.config/keys.json
19-if [ -f "$HOME/.config/keys.json" ]; then
20- while IFS='=' read -r key value; do
21- export "$key=$value"
22- done < <(python3 -c '
23-import json, sys
24-with open(sys.argv[1]) as f:
25- for k, v in json.load(f).items():
26- print(f"{k}={v}")
27-' "$HOME/.config/keys.json")
21+# Credentials loaded from ~/.keys.json
22+if [ -f "$HOME/.keys.json" ]; then
23+ eval "$(jq -r 'to_entries[] | "export \(.key)=\(.value | @sh)"' "$HOME/.keys.json")"
2824 fi
2925
3026 greet() {
@@ -41,7 +37,6 @@ greet() {
4137 local cow=${cows[$idx]:-"default"}
4238 fortune -s | cowsay -f "$cow" -W 80 | lolcat -p 1.0 -F 0.06 -S "$RANDOM"
4339 }
44-
4540 # Uncomment to get a nice greeting.
4641 greet
4742
ghostty/config+3−0
@@ -0,0 +1,3 @@
1+font-family = IosevkaTerm Nerd Font Mono
2+font-size = 12
3+theme = Oxocarbon
kitty/kitty.conf+12−0
@@ -0,0 +1,12 @@
1+enabled_layouts splits
2+map ctrl+shift+enter launch --location=vsplit
3+
4+enable_audio_bell no
5+
6+font_family IosevkaTerm Nerd Font Mono
7+bold_font auto
8+italic_font auto
9+bold_italic_font auto
10+font_size 12.0
11+
12+include tokyo_night.conf
kitty/tokyo_night.conf+27−0
@@ -0,0 +1,27 @@
1+# Colors (Tokyo Night) — mirrors alacritty/themes/tokyo_night.toml
2+# Source: https://github.com/zatchheems/tokyo-night-alacritty-theme
3+
4+foreground #a9b1d6
5+background #1a1b26
6+
7+color0 #32344a
8+color8 #444b6a
9+color1 #f7768e
10+color9 #ff7a93
11+color2 #9ece6a
12+color10 #b9f27c
13+color3 #e0af68
14+color11 #ff9e64
15+color4 #7aa2f7
16+color12 #7da6ff
17+color5 #ad8ee6
18+color13 #bb9af7
19+color6 #449dab
20+color14 #0db9d7
21+color7 #787c99
22+color15 #acb0d0
23+
24+# Window borders
25+active_border_color #7aa2f7
26+inactive_border_color #32344a
27+window_border_width 1
nvim/init.lua+94−88
@@ -51,6 +51,11 @@ require("lazy").setup({
5151 priority = 1000,
5252 opts = {},
5353 },
54+ {
55+ "nyoom-engineering/oxocarbon.nvim",
56+ lazy = false,
57+ priority = 1000,
58+ },
5459
5560 -- Statusline
5661 {
@@ -131,98 +136,99 @@ require("lazy").setup({
131136 end,
132137 },
133138
134- -- LSP/etc with Mason
135- {
136- "neovim/nvim-lspconfig",
137- config = function()
138- local function executable(path)
139- return path and vim.fn.executable(path) == 1
140- end
141-
142- local function join(...)
143- return table.concat({ ... }, "/")
144- end
145-
146- local function project_python(root_dir)
147- if root_dir then
148- for _, venv_name in ipairs({ ".venv", "venv" }) do
149- local python = join(root_dir, venv_name, "bin", "python")
150- if executable(python) then
151- return python
152- end
153- end
154- end
155-
156- if vim.env.VIRTUAL_ENV then
157- local python = join(vim.env.VIRTUAL_ENV, "bin", "python")
158- if executable(python) then
159- return python
160- end
161- end
162-
163- local python3 = vim.fn.exepath("python3")
164- if python3 ~= "" then
165- return python3
166- end
167-
168- local python = vim.fn.exepath("python")
169- if python ~= "" then
170- return python
171- end
172- end
173-
174- vim.lsp.config("pyright", {
175- before_init = function(_, config)
176- local python = project_python(config.root_dir)
177- if not python then
178- return
179- end
180-
181- config.settings = config.settings or {}
182- config.settings.python = config.settings.python or {}
183- config.settings.python.pythonPath = python
184-
185- config.settings.python.analysis = config.settings.python.analysis or {}
186- config.settings.python.analysis.autoSearchPaths = true
187- config.settings.python.analysis.useLibraryCodeForTypes = true
188-
189- local src_path = config.root_dir and join(config.root_dir, "src") or nil
190- if src_path and vim.fn.isdirectory(src_path) == 1 then
191- config.settings.python.analysis.extraPaths = { src_path }
192- end
193- end,
194- })
195- end,
196- },
197- {
198- "mason-org/mason.nvim",
199- config = function()
200- require("mason").setup()
201- end,
202- },
203- {
204- "mason-org/mason-lspconfig.nvim",
205- config = function()
206- require("mason-lspconfig").setup({
207- ensure_installed = {
208- "biome",
209- "emmylua_ls",
210- "gopls",
211- "pyright",
212- "ruff",
213- "ts_ls",
214- "zls",
215- },
216- automatic_enable = true,
217- })
218- end,
219- },
220-
221139 -- Use vim-ai-complete for autocomplete
222140 {
223141 "sacenox/vim-ai-complete",
224142 name = "vim-ai-complete",
225143 },
144+
145+ -- NO LSPs RIGHT NOW --
146+ -- LSP/etc with Mason
147+ -- {
148+ -- "neovim/nvim-lspconfig",
149+ -- config = function()
150+ -- local function executable(path)
151+ -- return path and vim.fn.executable(path) == 1
152+ -- end
153+ --
154+ -- local function join(...)
155+ -- return table.concat({ ... }, "/")
156+ -- end
157+ --
158+ -- local function project_python(root_dir)
159+ -- if root_dir then
160+ -- for _, venv_name in ipairs({ ".venv", "venv" }) do
161+ -- local python = join(root_dir, venv_name, "bin", "python")
162+ -- if executable(python) then
163+ -- return python
164+ -- end
165+ -- end
166+ -- end
167+ --
168+ -- if vim.env.VIRTUAL_ENV then
169+ -- local python = join(vim.env.VIRTUAL_ENV, "bin", "python")
170+ -- if executable(python) then
171+ -- return python
172+ -- end
173+ -- end
174+ --
175+ -- local python3 = vim.fn.exepath("python3")
176+ -- if python3 ~= "" then
177+ -- return python3
178+ -- end
179+ --
180+ -- local python = vim.fn.exepath("python")
181+ -- if python ~= "" then
182+ -- return python
183+ -- end
184+ -- end
185+ --
186+ -- vim.lsp.config("pyright", {
187+ -- before_init = function(_, config)
188+ -- local python = project_python(config.root_dir)
189+ -- if not python then
190+ -- return
191+ -- end
192+ --
193+ -- config.settings = config.settings or {}
194+ -- config.settings.python = config.settings.python or {}
195+ -- config.settings.python.pythonPath = python
196+ --
197+ -- config.settings.python.analysis = config.settings.python.analysis or {}
198+ -- config.settings.python.analysis.autoSearchPaths = true
199+ -- config.settings.python.analysis.useLibraryCodeForTypes = true
200+ --
201+ -- local src_path = config.root_dir and join(config.root_dir, "src") or nil
202+ -- if src_path and vim.fn.isdirectory(src_path) == 1 then
203+ -- config.settings.python.analysis.extraPaths = { src_path }
204+ -- end
205+ -- end,
206+ -- })
207+ -- end,
208+ -- },
209+ -- {
210+ -- "mason-org/mason.nvim",
211+ -- config = function()
212+ -- require("mason").setup()
213+ -- end,
214+ -- },
215+ -- {
216+ -- "mason-org/mason-lspconfig.nvim",
217+ -- config = function()
218+ -- require("mason-lspconfig").setup({
219+ -- ensure_installed = {
220+ -- "biome",
221+ -- "emmylua_ls",
222+ -- "gopls",
223+ -- "pyright",
224+ -- "ruff",
225+ -- "ts_ls",
226+ -- "zls",
227+ -- },
228+ -- automatic_enable = true,
229+ -- })
230+ -- end,
231+ -- },
226232 },
227233
228234 -- Configure any other settings here. See the documentation for more details.
@@ -265,4 +271,4 @@ vim.api.nvim_create_user_command('Q', 'q', {})
265271 vim.api.nvim_create_user_command('W', 'w', {})
266272
267273 -- Set a nice theme?
268-vim.cmd.colorscheme('tokyonight-night')
274+vim.cmd.colorscheme('oxocarbon')
nvim/lazy-lock.json+6−7
@@ -1,16 +1,15 @@
11 {
2- "gitsigns.nvim": { "branch": "main", "commit": "5be654f2232c10ddcad19c1607a67b6b4b78fc29" },
2+ "gitsigns.nvim": { "branch": "main", "commit": "070a5d7b985546cc57e1fc61e5bc507fecac6045" },
3+ "hererocks": { "branch": "master", "commit": "5d77b0bafc8b96f82355ca2ce5637c00d78a065c" },
34 "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
45 "lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
5- "mason-lspconfig.nvim": { "branch": "main", "commit": "9d28935aa95fa6c1dc7c4d6747f101a72a8a4bec" },
6- "mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
7- "nvim-lspconfig": { "branch": "master", "commit": "6fc041976833841cc9d991f45193533fe2a2e09b" },
86 "nvim-tree.lua": { "branch": "master", "commit": "531b807b8f0d6f75016a0ee1e0cd5ce2086e9d95" },
9- "nvim-treesitter": { "branch": "main", "commit": "074aa4422bf029908338e855d0c0f71470a971bb" },
10- "nvim-web-devicons": { "branch": "master", "commit": "2ae6958df7ced50baac5035cec0c15799eedfbf7" },
7+ "nvim-treesitter": { "branch": "main", "commit": "e289100ff98969e118c702199d88b764ce9e7fdf" },
8+ "nvim-web-devicons": { "branch": "master", "commit": "58447c1fca354bbf184425e4a8d01deecbd6f3c4" },
9+ "oxocarbon.nvim": { "branch": "main", "commit": "cd6523a0836d6e8ee823d343149fd06c7b71fdde" },
1110 "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
1211 "telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
1312 "telescope.nvim": { "branch": "master", "commit": "40aedd8a68c78a656a10a8d62d80c54af59420fb" },
1413 "tokyonight.nvim": { "branch": "main", "commit": "cdc07ac78467a233fd62c493de29a17e0cf2b2b6" },
15- "vim-ai-complete": { "branch": "main", "commit": "07e2c5ad926ce7c13583ce9ddf93815894f7eed5" }
14+ "vim-ai-complete": { "branch": "main", "commit": "46bf1b8f63b88bd2f80b1ebc26178e3ef64037ac" }
1615 }