- dt: dtach session manager for claude-in-dtach sessions - dtach-router: SSH-login dashboard to resume sessions (sourced from bashrc) - claude-provider: switch Claude Code between Anthropic and OpenRouter; the OpenRouter API key is read from $OPENROUTER_API_KEY at runtime and is never stored in the repo Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| bash | ||
| bin | ||
| vim | ||
| .gitignore | ||
| CLAUDE.md | ||
| install.sh | ||
| README.md | ||
| remote-install.sh | ||
config
Personal dotfiles — vim + bash configuration and a one-shot installer.
What's inside
| Path | Purpose |
|---|---|
install.sh |
Backs up existing config, then deploys vim + bashrc for a target. |
vim/vimrc |
Vim config: pathogen, molokai, syntastic (C with -Wall -Werror -Wextra), NERDTree, 42-style canonical class generators (:ClassH, :ClassC). |
vim/autoload/ |
pathogen.vim plugin loader (committed). |
vim/colors/ |
molokai.vim colorscheme (committed). |
bash/bashrc-linux |
bashrc for desktop Linux (git-aware prompt + command timer). |
bash/bashrc-osx |
bashrc for macOS. |
Install
One-liner (clone + install)
curl -fsSL https://git.bchanot.fr/bchanot/config/raw/branch/master/remote-install.sh | bash
remote-install.sh ensures git is present, clones the repo to ~/config (or pulls if already there), then runs install.sh. Override with env vars: REPO_URL=... CLONE_DIR=... BRANCH=... curl ... | bash.
Piping a remote script into
bashruns unreviewed code over the network. Readremote-install.shfirst, or use the manual clone below.
Manual
git clone https://git.bchanot.fr/bchanot/config.git && cd config
./install.sh
No argument — the OS is auto-detected.
What it does:
- On Debian/Ubuntu, installs
vim git gcc make pkg-config unzip dkms git-lfsviaapt-get. Skipped automatically whereapt-getis absent (macOS). - Moves any existing
~/.vim,~/.vimrc,~/.bashrc,~/.Sublivimto~/Oldconfig. - Clones the
syntasticandnerdtreevim plugins into~/.vim/bundle/. - Copies the tracked vim files into
~/.vimand symlinks~/.vimrc. - Picks the bashrc by OS: macOS →
bashrc-osx(falls back tobashrc-linuxif missing), everything else →bashrc-linux. Copies it to~/.bashrc.
The script is re-runnable: each run re-backs up to ~/Oldconfig (overwriting the previous backup) and re-clones plugins.
macOS note: the
osxtarget skipsapt-getbut still expectsvim,git, and a Homebrew-installed toolchain to be present.
Requirements
bash,git- Debian/Ubuntu
apt-getfor the package step (optional elsewhere) - A
bashlogin shell (zsh users: switch to bash for these prompts to apply)
Lint
shellcheck install.sh bash/bashrc-*