Compare commits

...

10 Commits

14 changed files with 456 additions and 85 deletions
+107
View File
@@ -0,0 +1,107 @@
{
"attribution": {
"commit": "",
"pr": ""
},
"permissions": {
"allow": [
"Bash(npx tsc:*)",
"Bash(pnpm run build:*)",
"Bash(pnpm tsc:*)",
"Bash(pnpm build:*)",
"Bash(pnpm test:*)",
"Bash(pnpm install:*)",
"Bash(git diff:*)"
],
"deny": [
"Bash(git push *)",
"Bash(ssh *)",
"Bash(ssh)",
"Bash(scp *)"
],
"defaultMode": "auto"
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/block-dangerous-git.sh"
}
]
}
]
},
"statusLine": {
"type": "command",
"command": "bash /home/tgrosinger/.claude/statusline-command.sh"
},
"enabledPlugins": {
"pr-review-toolkit@claude-plugins-official": true,
"gopls-lsp@claude-plugins-official": true,
"frontend-design@claude-plugins-official": true,
"code-simplifier@claude-plugins-official": true,
"skill-creator@claude-plugins-official": true,
"typescript-lsp@claude-plugins-official": true,
"claude-md-management@claude-plugins-official": true,
"security-guidance@claude-plugins-official": true
},
"sandbox": {
"enabled": true,
"autoAllowBashIfSandboxed": true,
"allowUnsandboxedCommands": false,
"network": {
"allowedDomains": [
"github.com",
"*.github.com",
"*.githubusercontent.com",
"registry.npmjs.org",
"proxy.golang.org",
"sum.golang.org",
"cache.nixos.org",
"nodejs.org",
"go.dev",
"dl.google.com",
"mise.en.dev"
]
},
"filesystem": {
"allowWrite": [
"~/.local/share/pnpm",
"~/.cache/pnpm"
],
"denyRead": [
"~/.ssh",
"~/.config/Signal",
"~/Documents"
]
},
"excludedCommands": [
"git push *",
"brew *",
"devbox add *",
"nix *"
]
},
"spinnerVerbs": {
"mode": "replace",
"verbs": [
"Thinking"
]
},
"effortLevel": "high",
"tui": "fullscreen",
"voice": {
"enabled": false,
"mode": "hold"
},
"prefersReducedMotion": true,
"autoMemoryEnabled": true,
"autoDreamEnabled": true,
"theme": "light",
"editorMode": "vim",
"agentPushNotifEnabled": true,
"skipAutoPermissionPrompt": true
}
+26
View File
@@ -0,0 +1,26 @@
function __dev_wt_completions
# Existing worktrees: dev-wt matches by directory basename or branch name,
# so offer both. Track branches that already have a worktree to avoid
# duplicating them in the "create new" list below.
set -l wt_branches
set -l path ""
for line in (git worktree list --porcelain 2>/dev/null)
if string match -q "worktree *" -- $line
set path (string replace "worktree " "" -- $line)
printf '%s\tworktree\n' (basename $path)
else if string match -q "branch *" -- $line
set -l branch (string replace "branch refs/heads/" "" -- $line)
set -a wt_branches $branch
printf '%s\tworktree branch\n' $branch
end
end
# Remaining local branches: selecting one creates a new worktree for it.
for branch in (git for-each-ref --format='%(refname:short)' refs/heads 2>/dev/null)
if not contains -- $branch $wt_branches
printf '%s\tbranch\n' $branch
end
end
end
complete -c dev-wt -f -n __fish_is_first_arg -a '(__dev_wt_completions)'
@@ -0,0 +1,235 @@
# fish completion for process-compose -*- shell-script -*-
function __process_compose_debug
set -l file "$BASH_COMP_DEBUG_FILE"
if test -n "$file"
echo "$argv" >> $file
end
end
function __process_compose_perform_completion
__process_compose_debug "Starting __process_compose_perform_completion"
# Extract all args except the last one
set -l args (commandline -opc)
# Extract the last arg and escape it in case it is a space
set -l lastArg (string escape -- (commandline -ct))
__process_compose_debug "args: $args"
__process_compose_debug "last arg: $lastArg"
# Disable ActiveHelp which is not supported for fish shell
set -l requestComp "PROCESS_COMPOSE_ACTIVE_HELP=0 $args[1] __complete $args[2..-1] $lastArg"
__process_compose_debug "Calling $requestComp"
set -l results (eval $requestComp 2> /dev/null)
# Some programs may output extra empty lines after the directive.
# Let's ignore them or else it will break completion.
# Ref: https://github.com/spf13/cobra/issues/1279
for line in $results[-1..1]
if test (string trim -- $line) = ""
# Found an empty line, remove it
set results $results[1..-2]
else
# Found non-empty line, we have our proper output
break
end
end
set -l comps $results[1..-2]
set -l directiveLine $results[-1]
# For Fish, when completing a flag with an = (e.g., <program> -n=<TAB>)
# completions must be prefixed with the flag
set -l flagPrefix (string match -r -- '-.*=' "$lastArg")
__process_compose_debug "Comps: $comps"
__process_compose_debug "DirectiveLine: $directiveLine"
__process_compose_debug "flagPrefix: $flagPrefix"
for comp in $comps
printf "%s%s\n" "$flagPrefix" "$comp"
end
printf "%s\n" "$directiveLine"
end
# this function limits calls to __process_compose_perform_completion, by caching the result behind $__process_compose_perform_completion_once_result
function __process_compose_perform_completion_once
__process_compose_debug "Starting __process_compose_perform_completion_once"
if test -n "$__process_compose_perform_completion_once_result"
__process_compose_debug "Seems like a valid result already exists, skipping __process_compose_perform_completion"
return 0
end
set --global __process_compose_perform_completion_once_result (__process_compose_perform_completion)
if test -z "$__process_compose_perform_completion_once_result"
__process_compose_debug "No completions, probably due to a failure"
return 1
end
__process_compose_debug "Performed completions and set __process_compose_perform_completion_once_result"
return 0
end
# this function is used to clear the $__process_compose_perform_completion_once_result variable after completions are run
function __process_compose_clear_perform_completion_once_result
__process_compose_debug ""
__process_compose_debug "========= clearing previously set __process_compose_perform_completion_once_result variable =========="
set --erase __process_compose_perform_completion_once_result
__process_compose_debug "Successfully erased the variable __process_compose_perform_completion_once_result"
end
function __process_compose_requires_order_preservation
__process_compose_debug ""
__process_compose_debug "========= checking if order preservation is required =========="
__process_compose_perform_completion_once
if test -z "$__process_compose_perform_completion_once_result"
__process_compose_debug "Error determining if order preservation is required"
return 1
end
set -l directive (string sub --start 2 $__process_compose_perform_completion_once_result[-1])
__process_compose_debug "Directive is: $directive"
set -l shellCompDirectiveKeepOrder 32
set -l keeporder (math (math --scale 0 $directive / $shellCompDirectiveKeepOrder) % 2)
__process_compose_debug "Keeporder is: $keeporder"
if test $keeporder -ne 0
__process_compose_debug "This does require order preservation"
return 0
end
__process_compose_debug "This doesn't require order preservation"
return 1
end
# This function does two things:
# - Obtain the completions and store them in the global __process_compose_comp_results
# - Return false if file completion should be performed
function __process_compose_prepare_completions
__process_compose_debug ""
__process_compose_debug "========= starting completion logic =========="
# Start fresh
set --erase __process_compose_comp_results
__process_compose_perform_completion_once
__process_compose_debug "Completion results: $__process_compose_perform_completion_once_result"
if test -z "$__process_compose_perform_completion_once_result"
__process_compose_debug "No completion, probably due to a failure"
# Might as well do file completion, in case it helps
return 1
end
set -l directive (string sub --start 2 $__process_compose_perform_completion_once_result[-1])
set --global __process_compose_comp_results $__process_compose_perform_completion_once_result[1..-2]
__process_compose_debug "Completions are: $__process_compose_comp_results"
__process_compose_debug "Directive is: $directive"
set -l shellCompDirectiveError 1
set -l shellCompDirectiveNoSpace 2
set -l shellCompDirectiveNoFileComp 4
set -l shellCompDirectiveFilterFileExt 8
set -l shellCompDirectiveFilterDirs 16
if test -z "$directive"
set directive 0
end
set -l compErr (math (math --scale 0 $directive / $shellCompDirectiveError) % 2)
if test $compErr -eq 1
__process_compose_debug "Received error directive: aborting."
# Might as well do file completion, in case it helps
return 1
end
set -l filefilter (math (math --scale 0 $directive / $shellCompDirectiveFilterFileExt) % 2)
set -l dirfilter (math (math --scale 0 $directive / $shellCompDirectiveFilterDirs) % 2)
if test $filefilter -eq 1; or test $dirfilter -eq 1
__process_compose_debug "File extension filtering or directory filtering not supported"
# Do full file completion instead
return 1
end
set -l nospace (math (math --scale 0 $directive / $shellCompDirectiveNoSpace) % 2)
set -l nofiles (math (math --scale 0 $directive / $shellCompDirectiveNoFileComp) % 2)
__process_compose_debug "nospace: $nospace, nofiles: $nofiles"
# If we want to prevent a space, or if file completion is NOT disabled,
# we need to count the number of valid completions.
# To do so, we will filter on prefix as the completions we have received
# may not already be filtered so as to allow fish to match on different
# criteria than the prefix.
if test $nospace -ne 0; or test $nofiles -eq 0
set -l prefix (commandline -t | string escape --style=regex)
__process_compose_debug "prefix: $prefix"
set -l completions (string match -r -- "^$prefix.*" $__process_compose_comp_results)
set --global __process_compose_comp_results $completions
__process_compose_debug "Filtered completions are: $__process_compose_comp_results"
# Important not to quote the variable for count to work
set -l numComps (count $__process_compose_comp_results)
__process_compose_debug "numComps: $numComps"
if test $numComps -eq 1; and test $nospace -ne 0
# We must first split on \t to get rid of the descriptions to be
# able to check what the actual completion will be.
# We don't need descriptions anyway since there is only a single
# real completion which the shell will expand immediately.
set -l split (string split --max 1 \t $__process_compose_comp_results[1])
# Fish won't add a space if the completion ends with any
# of the following characters: @=/:.,
set -l lastChar (string sub -s -1 -- $split)
if not string match -r -q "[@=/:.,]" -- "$lastChar"
# In other cases, to support the "nospace" directive we trick the shell
# by outputting an extra, longer completion.
__process_compose_debug "Adding second completion to perform nospace directive"
set --global __process_compose_comp_results $split[1] $split[1].
__process_compose_debug "Completions are now: $__process_compose_comp_results"
end
end
if test $numComps -eq 0; and test $nofiles -eq 0
# To be consistent with bash and zsh, we only trigger file
# completion when there are no other completions
__process_compose_debug "Requesting file completion"
return 1
end
end
return 0
end
# Since Fish completions are only loaded once the user triggers them, we trigger them ourselves
# so we can properly delete any completions provided by another script.
# Only do this if the program can be found, or else fish may print some errors; besides,
# the existing completions will only be loaded if the program can be found.
if type -q "process-compose"
# The space after the program name is essential to trigger completion for the program
# and not completion of the program name itself.
# Also, we use '> /dev/null 2>&1' since '&>' is not supported in older versions of fish.
complete --do-complete "process-compose " > /dev/null 2>&1
end
# Remove any pre-existing completions for the program since we will be handling all of them.
complete -c process-compose -e
# this will get called after the two calls below and clear the $__process_compose_perform_completion_once_result global
complete -c process-compose -n '__process_compose_clear_perform_completion_once_result'
# The call to __process_compose_prepare_completions will setup __process_compose_comp_results
# which provides the program's completion choices.
# If this doesn't require order preservation, we don't use the -k flag
complete -c process-compose -n 'not __process_compose_requires_order_preservation && __process_compose_prepare_completions' -f -a '$__process_compose_comp_results'
# otherwise we use the -k flag
complete -k -c process-compose -n '__process_compose_requires_order_preservation && __process_compose_prepare_completions' -f -a '$__process_compose_comp_results'
+10 -5
View File
@@ -1,3 +1,7 @@
# Mise shims so non-interactive shells (scripts, editor spawns) find tools.
# Interactive sessions get exact versions from `mise activate` below.
fish_add_path ~/.local/share/mise/shims
if status is-interactive if status is-interactive
# Commands to run in interactive sessions can go here # Commands to run in interactive sessions can go here
@@ -20,7 +24,6 @@ if status is-interactive
# Aliases # Aliases
alias vim="nvim" alias vim="nvim"
alias dc="podman compose"
alias lg="lazygit" alias lg="lazygit"
alias la="eza --long --header --git --group --time-style long-iso -a" alias la="eza --long --header --git --group --time-style long-iso -a"
alias record='wf-recorder -g "$(slurp)"' alias record='wf-recorder -g "$(slurp)"'
@@ -32,12 +35,14 @@ if status is-interactive
# Abbreviations # Abbreviations
# https://fishshell.com/docs/current/cmds/abbr.html # https://fishshell.com/docs/current/cmds/abbr.html
abbr --add --position command ds devbox services abbr --add --position command pc process-compose
# Set Path # Set Path
fish_add_path -p /home/tgrosinger/.dotfiles/bin/linux fish_add_path -p /home/tgrosinger/.dotfiles/bin/linux
# Add global devbox packages. # Per-directory toolchains and global tools.
# https://www.jetify.com/docs/devbox/devbox-global # https://mise.jdx.dev/getting-started.html
devbox global shellenv --init-hook | source if type -q mise
mise activate fish | source
end
end end
+1 -1
View File
@@ -1,4 +1,4 @@
# This file contains fish universal variable definitions. # This file contains fish universal variable definitions.
# VERSION: 3.0 # VERSION: 3.0
SETUVAR __fish_initialized:4300 SETUVAR __fish_initialized:4300
SETUVAR fish_user_paths:/home/tgrosinger/go/bin\x1e/home/tgrosinger/\x2enpm\x2dglobal/bin\x1e/home/tgrosinger/\x2edotfiles/bin/linux SETUVAR fish_user_paths:/home/tgrosinger/\x2elocal/bin\x1e/home/tgrosinger/\x2elocal/share/mise/shims\x1e/home/tgrosinger/go/bin\x1e/home/tgrosinger/\x2edotfiles/bin/linux
-45
View File
@@ -1,45 +0,0 @@
function __create_session
set session "process-compose"
set dir "/home/tgrosinger/obsidian"
if not tmux has-session -t "$session" 2>/dev/null
# Unset any devbox environment variables so they can be re-sourced
# in the new directory.
set -l shell env
for var in (set --names --export | string match 'DEVBOX_*')
set -a shell -u $var
end
set -a shell (command -s fish) --login
tmux new-session -d -s "$session" -c "$dir" -n dev $shell
# Ensure that new panes in this session also start with the clean environment.
tmux set-option -t "$session" default-command (string join ' ' -- $shell)
set -l left (tmux display-message -t "$session:dev" -p '#{pane_id}')
tmux split-window -h -t "$left" -c "$dir" $shell
set -l right (tmux display-message -t "$session:dev" -p '#{pane_id}')
tmux send-keys -t "$left" 'devbox services attach' Enter
tmux select-pane -t "$right"
end
end
function __attach_session
set session "process-compose"
if test -z "$TMUX"
tmux attach-session -t "$session"
else
set -l current_session (tmux display-message -p '#S')
if test "$current_session" != "$session"
tmux switch-client -t "$session"
end
end
end
function pc -d "Create and attach to a tmux session for process compose in Obsidian"
__create_session
__attach_session
end
+10
View File
@@ -0,0 +1,10 @@
function togif -d "Convert a video to a high-quality gif" -a input
set -l name (string replace -r '\.[^.]+$' '' $input)
set -l output "$name.gif"
set -l palette (mktemp --suffix .png)
ffmpeg -i $input -vf "fps=15,palettegen" -y $palette
ffmpeg -i $input -i $palette -lavfi "fps=15 [x]; [x][1:v] paletteuse" -y $output
rm -f $palette
end
+6
View File
@@ -0,0 +1,6 @@
function tomov -d "Convert a video to a GitHub-uploadable .mov" -a input
set -l name (string replace -r '\.[^.]+$' '' $input)
set -l output "$name.mov"
ffmpeg -i $input -c:v libopenh264 -crf 23 -preset slow -pix_fmt yuv420p -an $output
end
+23
View File
@@ -0,0 +1,23 @@
[settings]
# Pin exact versions, URLs, and checksums in mise.lock so a tampered
# re-release of the same version can't slip in silently.
lockfile = true
# Block the asdf plugin backend (arbitrary community shell scripts) in favor
# of aqua/ubi/core backends, which verify checksums and signatures. Remove if
# a tool you need exists only as an asdf plugin.
disable_backends = ["asdf", "ubi"]
# Never install versions less than 2 weeks old.
minimum_release_age = "14d"
[tools]
node = "lts"
pnpm = "latest"
"npm:@anthropic-ai/sandbox-runtime" = "latest"
"npm:typescript-language-server" = "latest"
"npm:typescript" = "latest"
"github:Satty-org/Satty" = "latest"
"github:DarthSim/overmind" = "latest"
"github:F1bonacc1/process-compose" = "latest"
+19 -18
View File
@@ -1,40 +1,41 @@
{ {
"LazyVim": { "branch": "main", "commit": "83d90f339defdb109a6ede333865a66ffc7ef6aa" }, "LazyVim": { "branch": "main", "commit": "c10948c50b18fae7f256433afdef09e432410480" },
"SchemaStore.nvim": { "branch": "main", "commit": "1ccbd3720b5064146b16d7761957da302ea1e86f" }, "SchemaStore.nvim": { "branch": "main", "commit": "735540a7602bffd1b07deab7d508affb57b78c64" },
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" }, "blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"catppuccin": { "branch": "main", "commit": "426dbebe06b5c69fd846ceb17b42e12f890aedf1" }, "catppuccin": { "branch": "main", "commit": "49a926655a2f5579e9c276470fc300baaa49e524" },
"code-review.nvim": { "branch": "main", "commit": "ed91462e20bd08c3be71efb11a4a7d00459f0b47" }, "code-review.nvim": { "branch": "main", "commit": "ed91462e20bd08c3be71efb11a4a7d00459f0b47" },
"conform.nvim": { "branch": "master", "commit": "dca1a190aa85f9065979ef35802fb77131911106" }, "conform.nvim": { "branch": "master", "commit": "619363c30309d29ffa631e67c8183f2a72caa373" },
"diffview.nvim": { "branch": "main", "commit": "fe01c7c3f11575c8d732fc0c1d52890d33ce41c0" }, "diffview.nvim": { "branch": "main", "commit": "c65ddb4724cc772a77e9eca1478bff451867b2e2" },
"flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" }, "flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" },
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" }, "friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
"gitsigns.nvim": { "branch": "main", "commit": "42d6aed4e94e0f0bbced16bbdcc42f57673bd75e" }, "gitsigns.nvim": { "branch": "main", "commit": "42d6aed4e94e0f0bbced16bbdcc42f57673bd75e" },
"grug-far.nvim": { "branch": "main", "commit": "21790e59dd0109a92a70cb874dd002af186314f5" }, "grug-far.nvim": { "branch": "main", "commit": "c995bbacf8229dc096ec1c3d60f8531059c86c1b" },
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" }, "lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
"lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" }, "lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, "markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "1423254f58a3407a5afd5ade0ccd901f3eecc6ba" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "21c5b3ebeaa0412e28096bb0701434c51c1fbf76" },
"mason.nvim": { "branch": "main", "commit": "e54f5bf5f12c560da31c17eee5b3e1bd369f3ff9" }, "mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
"mini.ai": { "branch": "main", "commit": "7e10ce8468c0fce4f527ae2c0e5c484f7667f73d" }, "mini.ai": { "branch": "main", "commit": "4511b3481707c1d021485475d34f2ed2a50bf47b" },
"mini.diff": { "branch": "main", "commit": "0ee0459152b141c0e1b0931eb6949105be4850a9" }, "mini.diff": { "branch": "main", "commit": "05be51814a718e74244829754a2a900a430a8d8b" },
"mini.icons": { "branch": "main", "commit": "bac6317300e205335df425296570d84322730067" }, "mini.icons": { "branch": "main", "commit": "ac38c983aed0a2bd32a65ca3e2348e12e58ca292" },
"mini.pairs": { "branch": "main", "commit": "42387c7fe68fc0b6e95eaf37f1bb76e7bffaa0d9" }, "mini.pairs": { "branch": "main", "commit": "30cf2f01c4aaa2033db67376b9924fa2442c05d6" },
"mini.surround": { "branch": "main", "commit": "2715e04bea3ec9244f15b421dc5b18c0fe326210" }, "mini.surround": { "branch": "main", "commit": "d401c3856585473693e5ce9ec4c8e5b608b4c0fe" },
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" }, "noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-ansible": { "branch": "main", "commit": "c7f595d568b588942d4d0c37b5cd6cae3764a148" }, "nvim-ansible": { "branch": "main", "commit": "c7f595d568b588942d4d0c37b5cd6cae3764a148" },
"nvim-lint": { "branch": "master", "commit": "eab58b48eb11d7745c11c505e0f3057165902461" }, "nvim-lint": { "branch": "master", "commit": "4b7957daf4b81eb578114bd6fcf20b6f5a2b59e8" },
"nvim-lspconfig": { "branch": "master", "commit": "451d4ef9abd4f0f08e379ef0d55d1c391b6125a7" }, "nvim-lspconfig": { "branch": "master", "commit": "a683e0ddf0cf64c6cd689e18ffb480ade3c162b7" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" }, "nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" },
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" }, "nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
"octo.nvim": { "branch": "master", "commit": "7fed87415c401954f73401bbed0fd736b9611e7c" },
"persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" }, "persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
"render-markdown.nvim": { "branch": "main", "commit": "629eb9533ec989d9d5c6cab8f3ad5372422c24e0" }, "render-markdown.nvim": { "branch": "main", "commit": "5adf0895310c1904e5abfaad40a2baad7fe44a07" },
"sidekick.nvim": { "branch": "main", "commit": "208e1c5b8170c01fd1d07df0139322a76479b235" }, "sidekick.nvim": { "branch": "main", "commit": "208e1c5b8170c01fd1d07df0139322a76479b235" },
"snacks.nvim": { "branch": "main", "commit": "ad9ede6a9cddf16cedbd31b8932d6dcdee9b716e" }, "snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" }, "todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
"tokyonight.nvim": { "branch": "main", "commit": "cdc07ac78467a233fd62c493de29a17e0cf2b2b6" }, "tokyonight.nvim": { "branch": "main", "commit": "cdc07ac78467a233fd62c493de29a17e0cf2b2b6" },
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" }, "trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
+2 -1
View File
@@ -11,7 +11,8 @@
"lazyvim.plugins.extras.lang.svelte", "lazyvim.plugins.extras.lang.svelte",
"lazyvim.plugins.extras.lang.tailwind", "lazyvim.plugins.extras.lang.tailwind",
"lazyvim.plugins.extras.lang.typescript", "lazyvim.plugins.extras.lang.typescript",
"lazyvim.plugins.extras.lang.yaml" "lazyvim.plugins.extras.lang.yaml",
"lazyvim.plugins.extras.util.octo"
], ],
"install_version": 8, "install_version": 8,
"news": { "news": {
+6
View File
@@ -8,3 +8,9 @@ vim.keymap.set("n", "<leader>aP", function()
title = "Claude plans", title = "Claude plans",
}) })
end, { desc = "Find Claude plan" }) end, { desc = "Find Claude plan" })
vim.keymap.set("n", "<leader>fP", function()
local path = vim.fn.expand("%:p")
vim.fn.setreg("+", path)
vim.notify("Copied: " .. path)
end, { desc = "Copy file path (absolute)" })
+5 -1
View File
@@ -6,7 +6,7 @@ set-option -g history-limit 10000
set -s escape-time 0 set -s escape-time 0
### Fix supporting italics ### Fix supporting italics
set -g default-terminal "tmux" set -g default-terminal "tmux-256color"
### Use the system clipboard ### Use the system clipboard
set -g set-clipboard on set -g set-clipboard on
@@ -43,6 +43,10 @@ bind-key -T copy-mode-vi 'C-j' select-pane -D
bind-key -T copy-mode-vi 'C-k' select-pane -U bind-key -T copy-mode-vi 'C-k' select-pane -U
bind-key -T copy-mode-vi 'C-l' select-pane -R bind-key -T copy-mode-vi 'C-l' select-pane -R
# Improved support for Claude Code CLI.
set -g allow-passthrough on
set -as terminal-features 'alacritty*:RGB'
# change windows # change windows
bind -n S-Right next-window bind -n S-Right next-window
bind -n S-Left previous-window bind -n S-Left previous-window
+6 -14
View File
@@ -5,13 +5,10 @@ echo "Installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# NOTE: Do not brew install anything with a dependency on node. # NOTE: Do not brew install anything with a dependency on node.
# Instead, install with npm -g. # Instead, use mise.
# #
# NPM configured with a different home directory to avoid conflicting with devbox global. # mise use --global npm:<package-name>
# #
# npm config set prefix $HOME/.npm-global
# fish_add_path $HOME/.npm-global/bin
# npm install -g @anthropic-ai/sandbox-runtime
# NOTE: claude was installed using the install script: # NOTE: claude was installed using the install script:
# curl -fsSL https://claude.ai/install.sh | bash # curl -fsSL https://claude.ai/install.sh | bash
@@ -33,6 +30,7 @@ brew install \
hmans/beans/beans \ hmans/beans/beans \
jq \ jq \
lazygit \ lazygit \
mise \
neovim \ neovim \
restic \ restic \
ripgrep \ ripgrep \
@@ -52,12 +50,6 @@ brew install --cask codex
brew services start atuin brew services start atuin
# Previously these were installed with npm because I didn't want to use brew to
# install packages with a node dependency. I'm not sure if that is still required.
#npm install -g @devcontainers/cli
#npm install -g mjml
#npm install -g jsonlint
# Install system packages # Install system packages
sudo dnf install \ sudo dnf install \
alacritty \ alacritty \
@@ -74,12 +66,12 @@ sudo dnf install \
socat \ socat \
wf-recorder wf-recorder
# Install global packages managed by mise.
mise install
# Install tailscale # Install tailscale
# https://tailscale.com/kb/1511/install-fedora-2 # https://tailscale.com/kb/1511/install-fedora-2
# Install satty
# https://github.com/Satty-org/Satty
# Install flatpaks # Install flatpaks
flatpak install flathub com.github.jeromerobert.pdfarranger flatpak install flathub com.github.jeromerobert.pdfarranger
flatpak install flathub fr.handbrake.ghb flatpak install flathub fr.handbrake.ghb