30 lines
1.1 KiB
Markdown
30 lines
1.1 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-02-28T04:53:10.968337+00:00"
|
|
---
|
|
|
|
# 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/`
|