61 lines
2.0 KiB
Markdown
61 lines
2.0 KiB
Markdown
---
|
|
id: e6158e53-af06-40f7-bfd1-32fc481a2b3f
|
|
type: decision
|
|
title: "Fish shell cc function migrated from zsh to fish autoload"
|
|
tags: [fish, zsh, tmux, claude-code, workstation, dotfiles, decision]
|
|
importance: 0.55
|
|
confidence: 0.8
|
|
created: "2026-02-28T04:53:10.968337+00:00"
|
|
updated: "2026-03-01T16:44:12.274993+00:00"
|
|
relations:
|
|
- target: 5f31ea7f-9b53-427d-b601-ab98dabaa2e3
|
|
type: RELATED_TO
|
|
direction: outgoing
|
|
strength: 0.85
|
|
edge_id: c8c80611-84e9-4300-9a85-fb569a20a33f
|
|
- target: 055aea5f-7084-48ae-a096-69ee1c35e114
|
|
type: RELATED_TO
|
|
direction: outgoing
|
|
strength: 0.8
|
|
edge_id: 950a6739-117b-472e-8dc6-b737af7556ea
|
|
- target: fba35b41-aced-4f74-ae01-dfa062df0764
|
|
type: RELATED_TO
|
|
direction: outgoing
|
|
strength: 0.75
|
|
edge_id: d6e68af6-ba0f-49d9-a730-dbcc38497ac1
|
|
- target: 8733b4b1-5651-4dc5-9b67-7edc07e62ca6
|
|
type: RELATED_TO
|
|
direction: incoming
|
|
strength: 0.75
|
|
edge_id: a40418d9-2b6a-4d9a-bbc7-079b66d61eab
|
|
- target: 037e4a34-6d52-41ed-85a8-9098eadba621
|
|
type: BUILDS_ON
|
|
direction: incoming
|
|
strength: 0.72
|
|
edge_id: 6b0f015a-56bf-448d-b6c0-8e417e34f6e2
|
|
- target: 037e4a34-6d52-41ed-85a8-9098eadba621
|
|
type: FOLLOWS
|
|
direction: incoming
|
|
strength: 0.8
|
|
edge_id: d924b10b-ebec-4e75-94e1-3c03ee6bbbbc
|
|
---
|
|
|
|
# Fish shell cc function migrated from zsh
|
|
|
|
## Decision
|
|
Migrated the `cc` function (opens Claude Code in a named tmux session) from `~/.zshrc` to fish shell's autoload function system.
|
|
|
|
## Implementation
|
|
- Created `/home/cal/dotfiles/fish/functions/cc.fish`
|
|
- Symlinked to `~/.config/fish/functions/cc.fish`
|
|
- Fish autoloads functions from `~/.config/fish/functions/` by filename convention — no explicit source needed
|
|
|
|
## Notes
|
|
- The original zsh version remains in `~/.zshrc` lines 46-54 (kept for backward compatibility / reference)
|
|
- Fish 4.2.0 on Nobara with Starship prompt
|
|
- The function opens Claude in a named tmux session, making it reattachable
|
|
|
|
## Related
|
|
- Dotfiles repo: `cal/dotfiles` on Gitea
|
|
- Fish config: `~/dotfiles/fish/functions/`
|