Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .config/fish/scripts/change-tmux-pane.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Change tmux pane with fuzzy selection (bash equivalent)

if [[ -z "${TMUX:-}" ]]; then
echo "Error: Not in a tmux session" >&2
exit 1
fi

target=$(tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index}.#{window_name}-#{pane_current_path}' \
| fzf-tmux -p \
| cut -d "." -f 1)

if [[ -n "$target" ]]; then
tmux switch-client -t "$target" 2>/dev/null || true
fi
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
# AGENTS.md

## Scope

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/oc is this optimal bash code


- This is a personal dotfiles repo, not a bootstrap or `stow` setup.
- Review files first and symlink only the configs you intend to use.

## Layout

- `.config/fish/` is the main shell config; `config.fish` sources `scripts/non-interactive.fish`, `scripts/alias.fish`, `vim.fish`, and interactive-only helpers under `scripts/` and `completions/`.
- `scripts/non-interactive.fish` defines `changeTmuxPane` and the `run` helper; `scripts/functions.fish` defines `mdc` and `te`.
- `.config/opencode/` is its own npm package/config area; keep `package.json` and `package-lock.json` aligned when changing it.
- `.config/nvim/` is a git submodule.

## Gotchas

- `config.fish` has machine-specific paths and assumptions: `/home/samarth`, `/home/linuxbrew/.linuxbrew`, `/opt/nvim`, `~/.deno/env`, and `$HOME/.turso/env`.
- `config.fish` also runs `gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"` on shell startup.
- Fish path setup is split between `config.fish`, `etc.config.fish`, and `paths.fish`; check all three before editing PATH behavior.
- This repo expects a Nerd Font, especially JetBrains Mono Nerd Font, for prompt and terminal icons.

## Verification

- There is no repo-wide build/test harness in the root docs; verify changes by loading the affected shell or app config directly.
- For Neovim changes, update the submodule separately if needed.
Loading