cross-platform dotfiles: OS별 분기 및 자동 설치 스크립트 추가

- config.fish: macOS/Linux 분기 (PATH, credential, clipboard, 컨테이너)
- tmux.conf: fish 경로 자동감지, pbcopy/xclip 분기
- gitconfig: credential helper를 .gitconfig.local로 분리
- install.sh: 전체 개발환경 원스톱 설치 (fish, nvim, kitty, fzf, rg, fd, delta, lazygit, go, rust, uv, claude 등)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
kappa
2026-03-12 22:54:10 +09:00
parent 66ed49ce2a
commit 9fd587a6db
4 changed files with 361 additions and 35 deletions

View File

@@ -97,14 +97,23 @@ 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-\' select-pane -l
# Neovim 서버와 클립보드 동기화
# Neovim 서버와 클립보드 동기화 (OS별 분기)
if-shell 'command -v pbcopy' {
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'pbcopy'
}
if-shell 'command -v xclip' {
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -selection clipboard'
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -selection clipboard'
}
# Fish shell 기본 셸인 경우
set -g default-shell /opt/homebrew/bin/fish
# Fish shell 기본 셸로 (OS별 경로)
if-shell 'test -x /opt/homebrew/bin/fish' {
set -g default-shell /opt/homebrew/bin/fish
}
if-shell 'test -x /usr/bin/fish' {
set -g default-shell /usr/bin/fish
}
# ══════════════════════════════════════════════════════════════════
# Claude Code 최적화 설정
# ══════════════════════════════════════════════════════════════════