xonecas.io
56101
Df

dotfiles / commit 99f23ff

dotfiles: remove fancy script

xonecas2026-10-26 99f23ff456917c264d5bf32866b4d9a62ed8fcea parent 62db41a

29 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

.bashrc+44−0
@@ -0,0 +1,44 @@
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+
5+[[ $- != *i* ]] && return
6+
7+# Uncomment to get a nice greeting.
8+# needs fortune, cowsay, and lolcat installed and in $PATH
9+#
10+# greet() {
11+# local cows=(
12+# "default" "flaming-sheep" "llama" "sheep" "skeleton" "three-eyes" "tux" "udder" "www"
13+# )
14+# local count=${#cows[@]}
15+# local idx
16+# if [ -n "${ZSH_VERSION:-}" ]; then
17+# idx=$((RANDOM % count + 1))
18+# else
19+# idx=$((RANDOM % count))
20+# fi
21+# local cow=${cows[$idx]:-"default"}
22+# fortune -s | cowsay -f "$cow" -W 80 | lolcat -p 1.0 -F 0.06 -S "$RANDOM"
23+# }
24+# greet
25+
26+export EDITOR=nvim
27+alias nv='nvim'
28+alias vim='nvim'
29+alias vi='nvim'
30+
31+alias ls='ls --color'
32+alias ll='ls -alF'
33+
34+alias g='git'
35+alias gst='git status'
36+alias gc='git commit --verbose'
37+alias gp='git pull --rebase'
38+alias gpo='git push origin'
39+
40+eval "$(fzf --bash)"
41+eval "$(starship init bash)"
42+
43+# --- 8< ---
44+
.config/kitty/kitty.conf+45−0
@@ -0,0 +1,45 @@
1+# Shift+Enter splits vertically
2+enabled_layouts splits
3+map ctrl+shift+enter launch --location=vsplit
4+
5+# Fancy cursor and other preferences
6+cursor_trail 1
7+cursor_trail_decay 0.1 0.2
8+enable_audio_bell no
9+remember_window_size no
10+window_padding_width 2
11+window_padding_height 2
12+initial_window_width 120c
13+initial_window_height 40c
14+disable_ligatures always
15+bold_font auto
16+italic_font auto
17+bold_italic_font auto
18+
19+# Font stuff
20+font_size 12
21+font_family Lilex Nerd Font
22+
23+# Jellybeans colors
24+color0 #929292
25+color1 #e27373
26+color2 #94b979
27+color3 #ffba7b
28+color4 #97bedc
29+color5 #e1c0fa
30+color6 #00988e
31+color7 #dedede
32+color8 #bdbdbd
33+color9 #ffa1a1
34+color10 #bddeab
35+color11 #ffdca0
36+color12 #b1d8f6
37+color13 #fbdaff
38+color14 #1ab2a8
39+color15 #ffffff
40+background #121212
41+selection_foreground #121212
42+cursor #ffa560
43+cursor_text_color #ffffff
44+foreground #dedede
45+selection_background #dedede
.config/mini-coding-agent/config.json+35−0
@@ -0,0 +1,35 @@
1+{
2+ "tools": [
3+ "read",
4+ "bash"
5+ ],
6+ "snapshotIgnoreDirs": [
7+ "*lock.json",
8+ ".git"
9+ ],
10+ "snapshotDiffsInContext": true,
11+ "programStatus": true,
12+ "notifications": "both",
13+ "showImages": true,
14+ "provider": "opencode-go",
15+ "model": "deepseek-v4.1-flash",
16+ "thinkingEffort": "low",
17+ "colorscheme": {
18+ "comment": "#bdbdbd",
19+ "prompt": "#97bedc",
20+ "accent": "#00988e",
21+ "err": "#e27373",
22+ "warn": "#ffba7b",
23+ "code": "#bdbdbd",
24+ "diff_add": "#94b979",
25+ "diff_delete": "#e27373",
26+ "inline_code": "#00988e",
27+ "link": "#97bedc",
28+ "heading1": "#b1d8f6",
29+ "heading2": "#1ab2a8",
30+ "heading3": "#fbdaff",
31+ "heading4": "#bddeab",
32+ "heading5": "#ffdca0",
33+ "heading6": "#ffa1a1"
34+ }
35+}
.config/nvim/init.lua+168−0
@@ -0,0 +1,168 @@
1+-- Bootstrap lazy.nvim
2+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
3+if not (vim.uv or vim.loop).fs_stat(lazypath) then
4+ local lazyrepo = "https://github.com/folke/lazy.nvim.git"
5+ local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
6+ if vim.v.shell_error ~= 0 then
7+ vim.api.nvim_echo({
8+ { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
9+ { out, "WarningMsg" },
10+ { "\nPress any key to exit..." },
11+ }, true, {})
12+ vim.fn.getchar()
13+ os.exit(1)
14+ end
15+end
16+vim.opt.rtp:prepend(lazypath)
17+
18+-- Setup lazy.nvim
19+require("lazy").setup({
20+ spec = {
21+ -- Theme
22+ {
23+ "nanotech/jellybeans.vim",
24+ lazy = false,
25+ priority = 1000,
26+ },
27+
28+ -- Git signs
29+ {
30+ "lewis6991/gitsigns.nvim",
31+ opts = {},
32+ },
33+
34+ -- Statusline
35+ {
36+ 'nvim-mini/mini.statusline',
37+ version = false,
38+ opts = {},
39+ },
40+
41+ -- Fuzzy Finder
42+ {
43+ 'nvim-telescope/telescope.nvim',
44+ dependencies = {
45+ 'nvim-lua/plenary.nvim',
46+ { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
47+ },
48+ cmd = 'Telescope',
49+ opts = {
50+ defaults = {
51+ file_ignore_patterns = {
52+ '^%.git/',
53+ '^node_modules/',
54+ },
55+ },
56+ pickers = {
57+ find_files = {
58+ hidden = true,
59+ no_ignore = false,
60+ },
61+ },
62+ },
63+ },
64+
65+ -- Tree-sitter syntax highlighting
66+ {
67+ 'nvim-treesitter/nvim-treesitter',
68+ lazy = false,
69+ build = ':TSUpdate',
70+ config = function()
71+ local parsers = {
72+ 'bash',
73+ 'css',
74+ 'go',
75+ 'html',
76+ 'javascript',
77+ 'json',
78+ 'lua',
79+ 'markdown',
80+ 'markdown_inline',
81+ 'python',
82+ 'query',
83+ 'tsx',
84+ 'typescript',
85+ 'vim',
86+ 'vimdoc',
87+ 'zig',
88+ }
89+
90+ require('nvim-treesitter').install(parsers)
91+
92+ vim.api.nvim_create_autocmd('FileType', {
93+ callback = function(args)
94+ pcall(vim.treesitter.start, args.buf)
95+ end,
96+ })
97+ end,
98+ },
99+ },
100+
101+ -- Configure any other settings here. See the documentation for more details.
102+ -- disable automatic plugin update notifications on startup
103+ checker = { enabled = false },
104+})
105+
106+-- Basic settings
107+vim.opt.relativenumber = true
108+vim.opt.number = true
109+vim.opt.ignorecase = true
110+vim.opt.smartcase = true
111+vim.opt.smartindent = true
112+vim.opt.cinkeys:remove('0#') -- Prevent auto-unindenting lines that start with '#' (for Python comments, preprocessor directives)
113+vim.opt.linebreak = true
114+vim.opt.swapfile = false
115+vim.opt.backup = false
116+vim.opt.writebackup = false
117+vim.opt.termguicolors = true
118+
119+-- Hide mode display and partial keybind. Reclaim the space.
120+vim.opt.showmode = false
121+vim.opt.showcmd = false
122+vim.opt.cmdheight = 0
123+
124+-- Indentation settings
125+vim.opt.expandtab = true
126+vim.opt.tabstop = 2
127+vim.opt.shiftwidth = 2
128+vim.opt.softtabstop = 2
129+
130+-- Set leader key to space (must be set before lazy.nvim)
131+vim.g.mapleader = ' '
132+vim.g.maplocalleader = ' '
133+
134+-- Keymaps
135+local keymap = vim.keymap.set
136+local opts = { noremap = true, silent = true }
137+
138+-- My keybindings
139+keymap('n', '<leader>h', ':nohlsearch<CR>', opts)
140+keymap('n', '<leader>q', ':qall<CR>', { noremap = true, silent = true, desc = 'Quit all' })
141+keymap('n', '<leader>Q', function()
142+ if vim.fn.winnr('$') > 1 then
143+ vim.cmd.close()
144+ else
145+ vim.cmd.bdelete()
146+ end
147+end, { noremap = true, silent = true, desc = 'Close focused buffer/split' })
148+keymap('n', '<leader>s', ':write<CR>', { noremap = true, silent = true, desc = 'Save buffer' })
149+keymap('n', '<leader>S', ':wall<CR>', { noremap = true, silent = true, desc = 'Save all buffers' })
150+keymap('n', '<leader>d', function()
151+ vim.diagnostic.setqflist({ open = true })
152+end, { desc = 'Open diagnostics quickfix list' })
153+
154+-- Plugin keybinds
155+keymap('n', '<leader>f', ':Telescope grep_string<CR>', opts)
156+keymap('n', '<leader>g', ':Telescope live_grep<CR>', opts)
157+keymap('n', '<leader>o', ':Telescope find_files<CR>', opts)
158+keymap('n', '<leader>b', ':Telescope buffers<CR>', opts)
159+
160+-- Movement remaps
161+keymap('n', 'j', 'gj', { noremap = true })
162+keymap('n', 'k', 'gk', { noremap = true })
163+
164+-- Command aliases
165+vim.api.nvim_create_user_command('Q', 'q', {})
166+vim.api.nvim_create_user_command('W', 'w', {})
167+
168+vim.cmd.colorscheme("jellybeans")
.gitignore+0−3
@@ -1,3 +0,0 @@
1-dot-compose/.zig-cache/
2-dot-compose/zig-out/
3-values/secrets.json
.npmrc+4−0
@@ -0,0 +1,4 @@
1+# Put npm packages in .local so they don't install with sudo
2+#
3+# change to the correct username before using.
4+# prefix = /home/xonecas/.local
AGENTS.md+0−1
@@ -1 +0,0 @@
1-> Never under any conditions read the contents of ./values/secrets.json.
README.md+1−18
@@ -1,20 +1,3 @@
11 # Dotfiles
22
3-Personal configuration files for my development environment, rendered with [`dot-compose`](./dot-compose).
4-
5-## Layout
6-
7-- `tmpl/` mirrors `$HOME`. `tmpl/.bashrc` renders to `~/.bashrc`.
8-- `values/` holds one JSON file per machine/profile, e.g. `values/kanagawa-arch-dev.json`.
9-- Templates fill machine-specific slots with `{{ key }}` / `{{ nested.key }}`;
10- everything else is copied verbatim.
11-
12-## Usage
13-
14-Render one file with:
15-
16-```sh
17-dot-compose --tmpl tmpl/.bashrc --values values/kanagawa-arch-dev.json
18-```
19-
20-Review each file before applying, as these are tailored to my personal workflow.
3+Config templates with the core of my preferences.
dot-compose/build.zig+0−22
@@ -1,22 +0,0 @@
1-const std = @import("std");
2-
3-pub fn build(b: *std.Build) void {
4- const target = b.standardTargetOptions(.{});
5- const optimize = b.standardOptimizeOption(.{});
6-
7- const exe = b.addExecutable(.{
8- .name = "dot-compose",
9- .root_module = b.createModule(.{
10- .root_source_file = b.path("src/main.zig"),
11- .target = target,
12- .optimize = optimize,
13- }),
14- });
15- b.installArtifact(exe);
16-
17- const run = b.step("run", "Run dot-compose");
18- const run_cmd = b.addRunArtifact(exe);
19- run.dependOn(&run_cmd.step);
20- run_cmd.step.dependOn(b.getInstallStep());
21- if (b.args) |args| run_cmd.addArgs(args);
22-}
dot-compose/build.zig.zon+0−11
@@ -1,11 +0,0 @@
1-.{
2- .name = .dot_compose,
3- .version = "0.1.0",
4- .fingerprint = 0xb90fb37088be8f54,
5- .minimum_zig_version = "0.16.0",
6- .paths = .{
7- "build.zig",
8- "build.zig.zon",
9- "src",
10- },
11-}
dot-compose/dot-compose.md+0−38
@@ -1,38 +0,0 @@
1-# Dot Compose
2-
3-A simple CLI to manage dotfiles based on existing template snippets and the user values.
4-
5-Concept initial setup:
6-
7-```sh
8-$ ./dot-compose --skill
9-# Agent instructions to parse existing dotfiles/values into templates and value files
10-...
11-```
12-The user can use that cli path to prompt an LLM/Agent to create their initial templates/values.
13-
14-Concept usage:
15-
16-```sh
17-$ ./dot-compose --tmpl ./tmpl/nvim/lua.init --values ./values/kanagawa-and-lilex-font.json
18-$ cat ~/.config/nvim/init.lua
19-# dot-compose generated init.lua
20-vim.cmd.colorscheme('kanagawa-dragon')
21-```
22-
23-Basically the typical developer dotfiles repo becomes the templates, and the values a json file with them so
24-we can render the template.
25-
26-What does this solve? See `../dotfiles` for how i've been doing dotfile management. My mac setup conflicts with my linux setup.
27-And my vps has a completly different set. I'd like to make the templates from that dotfiles, then configure values for mac, linux, vps, etc...
28-
29-So I can quickly apply/edit configs. For example, my mac uses ghostty with iosevka font and tokyo night themes acrross apps. But my linux setup uses
30-kitty and kanagawa themes and lilax font. My vps uses zellij but neither of the other ones uses it.
31-
32-Another pattern to notice from my dotfiles, is how I use a ~/.keys.json that is not committed to load bash env vars. The machine specific config removes
33-the need for this hack, and I can just set these in a special values json (./values/secrets.json gitignored), where I can keep secrets, safe outside of git.
34-
35-## Tech
36-
37-- zig 0.16.x
38-- memory efficient, fast.
dot-compose/src/main.zig+0−197
@@ -1,197 +0,0 @@
1-const std = @import("std");
2-const Io = std.Io;
3-const Value = std.json.Value;
4-
5-const skill =
6- \\dot-compose renders dotfile templates with machine-specific values.
7- \\
8- \\Layout:
9- \\ tmpl/ mirrors $HOME. tmpl/.config/nvim/init.lua renders to ~/.config/nvim/init.lua
10- \\ values/ one JSON file per machine/profile, e.g. values/mac.json
11- \\
12- \\Template syntax:
13- \\ {{ key }} insert a value from the JSON file
14- \\ {{ nested.key }} walk into nested JSON objects with dots
15- \\ Everything else is copied verbatim.
16- \\
17- \\Values may be strings, numbers or booleans. null renders as empty text.
18- \\
19- \\Your task, given an existing dotfiles tree:
20- \\ 1. Move each config file to tmpl/<its path relative to $HOME>.
21- \\ 2. Replace every machine-specific literal with a {{ }} slot.
22- \\ Machine-specific means it differs across machines: fonts, themes,
23- \\ usernames, hosts, paths, secrets, tools present on only some machines.
24- \\ 3. Collect those literals into values/<profile>.json. Group related keys
25- \\ in nested objects, e.g. {"font": {"family": "Lilex Nerd Font Mono"}}.
26- \\ 4. Put secrets in values/secrets.json and gitignore it.
27- \\ 5. Leave anything identical on every machine as plain text.
28- \\
29-;
30-
31-pub fn main(init: std.process.Init) !void {
32- run(init) catch |e| {
33- if (e == error.Message) std.process.exit(1);
34- return e;
35- };
36-}
37-
38-fn run(init: std.process.Init) !void {
39- const arena = init.arena.allocator();
40- const io = init.io;
41- const args = try init.minimal.args.toSlice(arena);
42-
43- var tmpl_path: ?[]const u8 = null;
44- var values_path: ?[]const u8 = null;
45-
46- var i: usize = 1;
47- while (i < args.len) : (i += 1) {
48- const a = args[i];
49- if (std.mem.eql(u8, a, "--skill")) return stdout(io, skill);
50- if (std.mem.eql(u8, a, "--tmpl")) {
51- i += 1;
52- tmpl_path = try arg(args, i, "--tmpl");
53- } else if (std.mem.eql(u8, a, "--values")) {
54- i += 1;
55- values_path = try arg(args, i, "--values");
56- } else {
57- return fail("unknown argument: {s}", .{a});
58- }
59- }
60-
61- const tmpl = tmpl_path orelse return fail("missing --tmpl", .{});
62- const values = values_path orelse return fail("missing --values", .{});
63-
64- const home = init.environ_map.get("HOME") orelse return fail("HOME is not set", .{});
65-
66- const source = Io.Dir.cwd().readFileAlloc(io, tmpl, arena, .unlimited) catch |e|
67- return fail("cannot read template {s}: {t}", .{ tmpl, e });
68- const values_json = Io.Dir.cwd().readFileAlloc(io, values, arena, .unlimited) catch |e|
69- return fail("cannot read values {s}: {t}", .{ values, e });
70-
71- var parsed = std.json.parseFromSliceLeaky(Value, arena, values_json, .{}) catch |e|
72- return fail("cannot parse {s}: {t}", .{ values, e });
73-
74- // Merge a sibling `secrets.json`, if present, so templates can use secret keys directly.
75- if (secretsPath(arena, values)) |secrets_path| {
76- if (Io.Dir.cwd().readFileAlloc(io, secrets_path, arena, .unlimited) catch null) |secrets_json| {
77- const secrets = std.json.parseFromSliceLeaky(Value, arena, secrets_json, .{}) catch |e|
78- return fail("cannot parse {s}: {t}", .{ secrets_path, e });
79- parsed = try merge(arena, parsed, secrets);
80- }
81- }
82-
83- const rendered = try render(arena, source, parsed);
84-
85- const rel = tmplRelPath(arena, tmpl) catch
86- return fail("template path must live under a 'tmpl' directory: {s}", .{tmpl});
87- const dest = try std.fs.path.join(arena, &.{ home, rel });
88-
89- var af = Io.Dir.cwd().createFileAtomic(io, dest, .{ .make_path = true, .replace = true }) catch |e|
90- return fail("cannot create {s}: {t}", .{ dest, e });
91- defer af.deinit(io);
92- try af.file.writeStreamingAll(io, rendered);
93- try af.replace(io);
94-}
95-
96-fn arg(args: []const []const u8, i: usize, flag: []const u8) ![]const u8 {
97- if (i >= args.len) return fail("{s} needs a path", .{flag});
98- return args[i];
99-}
100-
101-// Everything after the `tmpl` path component, relative to $HOME.
102-fn tmplRelPath(arena: std.mem.Allocator, tmpl: []const u8) ![]const u8 {
103- var it = std.mem.tokenizeScalar(u8, tmpl, '/');
104- var found = false;
105- var out: std.ArrayList(u8) = .empty;
106- while (it.next()) |part| {
107- if (!found) {
108- found = std.mem.eql(u8, part, "tmpl");
109- continue;
110- }
111- if (out.items.len != 0) try out.append(arena, '/');
112- try out.appendSlice(arena, part);
113- }
114- if (!found or out.items.len == 0) return error.NotATemplate;
115- return out.items;
116-}
117-
118-// Path to a sibling `secrets.json` next to the values file, or null when not wanted.
119-fn secretsPath(arena: std.mem.Allocator, values: []const u8) ?[]const u8 {
120- if (std.mem.eql(u8, std.fs.path.basename(values), "secrets.json")) return null;
121- const dir = std.fs.path.dirname(values) orelse ".";
122- return std.fs.path.join(arena, &.{ dir, "secrets.json" }) catch null;
123-}
124-
125-// Shallow merge of two JSON objects; `over` wins on key collisions.
126-fn merge(arena: std.mem.Allocator, base: Value, over: Value) !Value {
127- const base_obj = switch (base) {
128- .object => |o| o,
129- else => return base,
130- };
131- const over_obj = switch (over) {
132- .object => |o| o,
133- else => return base,
134- };
135- var map: std.json.ObjectMap = .empty;
136- var it = base_obj.iterator();
137- while (it.next()) |e| try map.put(arena, e.key_ptr.*, e.value_ptr.*);
138- var it2 = over_obj.iterator();
139- while (it2.next()) |e| try map.put(arena, e.key_ptr.*, e.value_ptr.*);
140- return .{ .object = map };
141-}
142-
143-fn render(arena: std.mem.Allocator, tmpl: []const u8, root: Value) ![]const u8 {
144- var out: std.ArrayList(u8) = .empty;
145- var i: usize = 0;
146- while (i < tmpl.len) {
147- if (tmpl[i] == '{' and i + 1 < tmpl.len and tmpl[i + 1] == '{') {
148- const close = std.mem.indexOfPos(u8, tmpl, i + 2, "}}") orelse
149- return fail("unclosed '{{{{' at byte {d}", .{i});
150- const key = std.mem.trim(u8, tmpl[i + 2 .. close], " \t\r\n");
151- const v = lookup(root, key) orelse
152- return fail("no value for '{s}'", .{key});
153- try emit(arena, &out, key, v);
154- i = close + 2;
155- } else {
156- try out.append(arena, tmpl[i]);
157- i += 1;
158- }
159- }
160- return out.items;
161-}
162-
163-fn lookup(root: Value, key: []const u8) ?Value {
164- if (key.len == 0) return null;
165- var cur = root;
166- var it = std.mem.splitScalar(u8, key, '.');
167- while (it.next()) |part| {
168- cur = switch (cur) {
169- .object => |o| o.get(part) orelse return null,
170- else => return null,
171- };
172- }
173- return cur;
174-}
175-
176-fn emit(arena: std.mem.Allocator, out: *std.ArrayList(u8), key: []const u8, v: Value) !void {
177- switch (v) {
178- .string => |s| try out.appendSlice(arena, s),
179- .integer => |n| try out.print(arena, "{d}", .{n}),
180- .float => |n| try out.print(arena, "{d}", .{n}),
181- .bool => |b| try out.appendSlice(arena, if (b) "true" else "false"),
182- .null => {},
183- else => return fail("value for '{s}' is not a scalar", .{key}),
184- }
185-}
186-
187-fn stdout(io: Io, text: []const u8) void {
188- var buf: [4096]u8 = undefined;
189- var w: Io.File.Writer = .init(.stdout(), io, &buf);
190- w.interface.writeAll(text) catch {};
191- w.interface.flush() catch {};
192-}
193-
194-fn fail(comptime fmt: []const u8, args: anytype) error{Message} {
195- std.debug.print("dot-compose: " ++ fmt ++ "\n", args);
196- return error.Message;
197-}
tmpl/.agents/AGENTS.md+0−21
@@ -1,21 +0,0 @@
1-# System instructions
2-
3-Follow all instructions as closely as possible. The instructions are not suggestions and may not be ignored for convenience or speed.
4-
5-- Do not add scope, backwards compatibility or extras without the user explicitly asking.
6-- Do not add tests or comments unless explicitly told to by the user.
7-- Always be terse in your replies to the user, use Simplified English.
8-- Reply to the user with correctly formatted markdown.
9-
10-## Env
11-
12-These are available to you and already authenticated. Do not read auth keys.
13-
14-{{ env.tools }}
15-
16-> You don't have sudo, it's intended. The user does, he can run commands. Never try to bypass or escalate your privileges.
17-
18-## Golden rule for coding
19-
20-> Bugs, Cyclomatic complexity, Time complexity, and Memory complexity are all directly related to the single lines of code amount.
21-> Less code, less complexity, less bugs.
tmpl/.bashrc+0−49
@@ -1,49 +0,0 @@
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-
5-[[ $- != *i* ]] && return
6-
7-export EDITOR=nvim
8-
9-alias ls='ls --color'
10-alias ll='ls -alF'
11-
12-alias g='git'
13-alias gst='git status'
14-alias gc='git commit --verbose'
15-alias gp='git pull --rebase'
16-alias gpo='git push origin'
17-
18-alias nv='nvim'
19-alias zj='zellij a -c dev'
20-
21-alias sto='cd {{ paths.storage }}'
22-alias rep='cd {{ paths.repos }}'
23-
24-alias vps='ssh {{ vps.user }}@{{ vps.host }}'
25-
26-export HOSTINGER_API_KEY='{{ HOSTINGER_API_KEY }}'
27-export OPENCODE_API_KEY='{{ OPENCODE_API_KEY }}'
28-export PORKBUN_API_KEY='{{ PORKBUN_API_KEY }}'
29-export PORKBUN_SECRET_API_KEY='{{ PORKBUN_SECRET_API_KEY }}'
30-
31-greet() {
32- local cows=(
33- "default" "flaming-sheep" "fox" "llama" "sheep" "skeleton" "three-eyes" "tux" "udder" "www"
34- )
35- local count=${#cows[@]}
36- local idx
37- if [ -n "${ZSH_VERSION:-}" ]; then
38- idx=$((RANDOM % count + 1))
39- else
40- idx=$((RANDOM % count))
41- fi
42- local cow=${cows[$idx]:-"default"}
43- fortune -s | cowsay -f "$cow" -W 80 | lolcat -p 1.0 -F 0.06 -S "$RANDOM"
44-}
45-# Uncomment to get a nice greeting.
46-greet
47-
48-eval "$(fzf --bash)"
49-eval "$(starship init bash)"
tmpl/.claude/CLAUDE.md+0−21
@@ -1,21 +0,0 @@
1-# System instructions
2-
3-Follow all instructions as closely as possible. The instructions are not suggestions and may not be ignored for convenience or speed.
4-
5-- Do not add scope, backwards compatibility or extras without the user explicitly asking.
6-- Do not add tests or comments unless explicitly told to by the user.
7-- Always be terse in your replies to the user, use Simplified English.
8-- Reply to the user with correctly formatted markdown.
9-
10-## Env
11-
12-These are available to you and already authenticated. Do not read auth keys.
13-
14-{{ env.tools }}
15-
16-> You don't have sudo, it's intended. The user does, he can run commands. Never try to bypass or escalate your privileges.
17-
18-## Golden rule for coding
19-
20-> Bugs, Cyclomatic complexity, Time complexity, and Memory complexity are all directly related to the single lines of code amount.
21-> Less code, less complexity, less bugs.
tmpl/.claude/settings.json+0−12
@@ -1,12 +0,0 @@
1-{
2- "permissions": {
3- "defaultMode": "{{ claude.permissionMode }}"
4- },
5- "effortLevel": "{{ claude.effort }}",
6- "skipDangerousModePermissionPrompt": true,
7- "theme": "{{ claude.theme }}",
8- "statusLine": {
9- "type": "command",
10- "command": "jq -r '\"\\(.model.display_name) · ctx \\(.context_window.used_percentage // 0 | floor)%\"'"
11- }
12-}
tmpl/.config/ghostty/config+0−3
@@ -1,3 +0,0 @@
1-theme = {{ ghostty.theme }}
2-font-family = {{ font.family }}
3-font-size = {{ font.size }}
tmpl/.config/herdr/config.toml+0−41
@@ -1,41 +0,0 @@
1-# ~/.config/herdr/config.toml
2-# Palette values come from the profile under `herdr` in values/<profile>.json.
3-# Reference: herdr --default-config
4-
5-onboarding = false
6-
7-[theme]
8-name = "{{ herdr.theme }}"
9-
10-# Base theme tokens overridden with the profile palette.
11-[theme.custom]
12-sidebar_bg = "{{ herdr.colors.sidebar_bg }}"
13-panel_bg = "{{ herdr.colors.panel_bg }}"
14-active_row_bg = "{{ herdr.colors.active_row_bg }}"
15-selection_bg = "{{ herdr.colors.selection_bg }}"
16-surface_dim = "{{ herdr.colors.surface_dim }}"
17-surface0 = "{{ herdr.colors.surface0 }}"
18-surface1 = "{{ herdr.colors.surface1 }}"
19-overlay0 = "{{ herdr.colors.overlay0 }}"
20-overlay1 = "{{ herdr.colors.overlay1 }}"
21-text = "{{ herdr.colors.text }}"
22-subtext0 = "{{ herdr.colors.subtext0 }}"
23-accent = "{{ herdr.colors.accent }}"
24-mauve = "{{ herdr.colors.mauve }}"
25-green = "{{ herdr.colors.green }}"
26-yellow = "{{ herdr.colors.yellow }}"
27-red = "{{ herdr.colors.red }}"
28-blue = "{{ herdr.colors.blue }}"
29-teal = "{{ herdr.colors.teal }}"
30-peach = "{{ herdr.colors.peach }}"
31-
32-[terminal]
33-# Empty means $SHELL, then /bin/sh.
34-default_shell = ""
35-kitty_graphics = true
36-
37-[ui]
38-accent = "{{ herdr.colors.accent }}"
39-
40-[session]
41-resume_agents_on_restore = true
tmpl/.config/kitty/kanagawa_dragon.conf+0−51
@@ -1,51 +0,0 @@
1-# vim:ft=kitty
2-
3-## name: Kanagawa_dragon
4-## license: MIT
5-## author: Tommaso Laurenzi
6-## upstream: https://github.com/rebelot/kanagawa.nvim/
7-
8-
9-background #181616
10-foreground #c5c9c5
11-selection_background #2D4F67
12-selection_foreground #C8C093
13-url_color #72A7BC
14-cursor #C8C093
15-
16-# Tabs
17-active_tab_background #12120f
18-active_tab_foreground #C8C093
19-inactive_tab_background #12120f
20-inactive_tab_foreground #a6a69c
21-#tab_bar_background #15161E
22-
23-# normal
24-color0 #0d0c0c
25-color1 #c4746e
26-color2 #8a9a7b
27-color3 #c4b28a
28-color4 #8ba4b0
29-color5 #a292a3
30-color6 #8ea4a2
31-color7 #C8C093
32-
33-# bright
34-color8 #a6a69c
35-color9 #E46876
36-color10 #87a987
37-color11 #E6C384
38-color12 #7FB4CA
39-color13 #938AA9
40-color14 #7AA89F
41-color15 #c5c9c5
42-
43-
44-# extended colors
45-color16 #b6927b
46-color17 #b98d7b
47-
48-# window borders / split dividers
49-active_border_color #3a3a3a
50-inactive_border_color #2a2a2a
51-
tmpl/.config/kitty/kitty.conf+0−25
@@ -1,25 +0,0 @@
1-enabled_layouts splits
2-map ctrl+shift+enter launch --location=vsplit
3-
4-remember_window_size no
5-initial_window_width 120c
6-initial_window_height 40c
7-
8-enable_audio_bell no
9-hide_window_decorations yes
10-window_padding_width 2
11-window_padding_height 1
12-
13-disable_ligatures always
14-
15-font_family {{ font.family }}
16-bold_font auto
17-italic_font auto
18-bold_italic_font auto
19-font_size {{ font.size }}
20-
21-disable_ligatures always
22-
23-include {{ kitty.theme }}
24-#include oxocarbon_dark.conf
25-# include tokyo_night.conf
tmpl/.config/kitty/oxocarbon_dark.conf+0−53
@@ -1,53 +0,0 @@
1-# oxocarbon theme ported to kitty, https://github.com/hbjydev/oxocarbon-kitty
2-# originally made by nyoom, https://github.com/nyoom-engineering/oxocarbon
3-
4-foreground #dde1e6
5-background #161616
6-selection_foreground #f2f4f8
7-selection_background #525252
8-
9-cursor #f2f4f8
10-cursor_text_color #393939
11-
12-url_color #ee5396
13-url_style single
14-
15-active_border_color #ee5396
16-inactive_border_color #ff7eb6
17-
18-bell_border_color #ee5396
19-
20-wayland_titlebar_color system
21-macos_titlebar_color system
22-
23-active_tab_foreground #161616
24-active_tab_background #ee5396
25-inactive_tab_foreground #dde1e6
26-inactive_tab_background #393939
27-tab_bar_background #161616
28-
29-color0 #262626
30-color8 #393939
31-
32-color1 #ff7eb6
33-color9 #ff7eb6
34-
35-color2 #42be65
36-color10 #42be65
37-
38-color3 #82cfff
39-color11 #82cfff
40-
41-color4 #33b1ff
42-color12 #33b1ff
43-
44-color5 #ee5396
45-color13 #ee5396
46-
47-color6 #3ddbd9
48-color14 #3ddbd9
49-
50-color7 #dde1e6
51-color15 #ffffff
52-
53-# vim:ft=conf
tmpl/.config/kitty/tokyo_night.conf+0−27
@@ -1,27 +0,0 @@
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
tmpl/.config/mini-coding-agent/config.json+0−23
@@ -1,23 +0,0 @@
1-{
2- "theme": "{{ agent.theme }}",
3- "provider": "{{ agent.provider }}",
4- "model": "{{ agent.model }}",
5- "thinkingEffort": "{{ agent.thinkingEffort }}",
6- "tools": [
7- "edit",
8- "read",
9- "bash"
10- ],
11- "snapshotIgnoreDirs": [
12- "*lock.json",
13- ".git"
14- ],
15- "mcpServers": {
16- "firecrawl": {
17- "url": "https://mcp.firecrawl.dev/v2/mcp",
18- "headers": { "Authorization": "{{ FIRECRAWL_API_KEY }}" }
19- }
20- },
21- "showImages": true,
22- "herdr": true
23-}
tmpl/.config/nvim/.luarc.json+0−5
@@ -1,5 +0,0 @@
1-{
2- "diagnostics.globals": [
3- "vim"
4- ]
5-}
tmpl/.config/nvim/init.lua+0−281
@@ -1,281 +0,0 @@
1--- Neovim configuration
2--- Author: @xonecas
3-
4--- Basic settings
5-vim.opt.relativenumber = true
6-vim.opt.number = true
7-vim.opt.ignorecase = true
8-vim.opt.smartcase = true
9-vim.opt.smartindent = true
10-vim.opt.cinkeys:remove('0#') -- Prevent auto-unindenting lines that start with '#' (for Python comments, preprocessor directives)
11-vim.opt.linebreak = true
12-vim.opt.swapfile = false
13-vim.opt.backup = false
14-vim.opt.writebackup = false
15-vim.opt.termguicolors = true
16-
17--- Hide mode display and partial keybind. Reclaim the space.
18-vim.opt.showmode = false
19-vim.opt.showcmd = false
20-vim.opt.cmdheight = 0
21-
22--- Indentation settings
23-vim.opt.expandtab = true
24-vim.opt.tabstop = 2
25-vim.opt.shiftwidth = 2
26-vim.opt.softtabstop = 2
27-
28--- Set leader key to space (must be set before lazy.nvim)
29-vim.g.mapleader = ' '
30-vim.g.maplocalleader = ' '
31-
32--- Bootstrap lazy.nvim
33-local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
34-if not (vim.uv or vim.loop).fs_stat(lazypath) then
35- local lazyrepo = "https://github.com/folke/lazy.nvim.git"
36- local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
37- if vim.v.shell_error ~= 0 then
38- vim.api.nvim_echo({
39- { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
40- { out, "WarningMsg" },
41- { "\nPress any key to exit..." },
42- }, true, {})
43- vim.fn.getchar()
44- os.exit(1)
45- end
46-end
47-vim.opt.rtp:prepend(lazypath)
48-
49--- Setup lazy.nvim
50-require("lazy").setup({
51- spec = {
52- -- Some themes:
53- {
54- "folke/tokyonight.nvim",
55- lazy = false,
Cut short: this commit's diff is over 1000 lines.
tmpl/.config/nvim/lazy-lock.json+0−16
Cut short: this commit's diff is over 1000 lines.
tmpl/.zshrc+0−30
Cut short: this commit's diff is over 1000 lines.
values/kanagawa-arch-dev.json+0−38
Cut short: this commit's diff is over 1000 lines.
values/tokyo-mac.json+0−18
Cut short: this commit's diff is over 1000 lines.