shell: fish functions -> ~/.local/bin executables + bash/zsh ports; manage ~/.agents

- 16 cross-shell utilities converted to sh/bash chezmoi executables:
  ai c2p cp-appid extract_agents fab gdc gh-sonr-org-migrate ghg-clone
  ghn gho git-summary launch_omp_livediff_overlay lc-elir mdcp mdp pj
  (ghg-clone not named ghg: unrelated cargo binary owns that name)
- cwd/history helpers stay per-shell: yy c cd clip-last + ghg/ghn/gho
  cd-wrappers in bash/functions/ and zsh/functions/, loaded by rc files
- fish keeps only shell-state functions; converted ones now hit PATH
- cp-appid ignore gating moved to .local/bin path
- dot_agents/skills: 82 skills materialized from dotstate storage so
  dot_claude skill symlinks resolve on fresh bootstrap; dotstate
  profile/symlinks.json released .agents/skills .bashrc .zshrc
This commit is contained in:
Prad Nukala committed 2026-08-10 15:15:06 -04:00
1 parent 6776366ce6
commit 6406208b35
637 files changed
+100297 -497

No files matched your search

-43
View File
@@ -1,43 +0,0 @@
function cp-appid --description "Fuzzy-pick a desktop app ID and copy to clipboard"
set -l search_dirs \
/usr/share/applications \
/usr/local/share/applications \
$HOME/.local/share/applications \
/var/lib/flatpak/exports/share/applications \
$HOME/.local/share/flatpak/exports/share/applications \
/var/lib/snapd/desktop/applications
set -l existing_dirs
for d in $search_dirs
test -d $d; and set -a existing_dirs $d
end
test (count $existing_dirs) -eq 0
and echo "No application directories found." >&2
and return 1
set -l chosen (
fd --type f --extension desktop . $existing_dirs \
| while read -l f
set -l app_id (basename $f .desktop)
set -l name (rg -m1 '^Name=' $f | string replace 'Name=' '')
test -z "$name"; and set name $app_id
echo "$name\t$app_id"
end \
| sort -u -t\t -k1 \
| fzf \
--delimiter='\t' \
--with-nth=1,2 \
--prompt="App ID › " \
--height=50% \
--layout=reverse \
--border=rounded \
--info=inline
)
test -z "$chosen"; and return 0
set -l app_id (string split '\t' $chosen)[2]
echo -n $app_id | wl-copy
echo "Copied: $app_id"
end