- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
tide-setup now configures the Rainbow two-line style with a 12-hour clock (time added to the right-side items so it still shows) and the transient prompt, so old prompts collapse to the character line instead of leaving full-width frames that break when the window is resized. _tide_pwd shadows tide's: the last 3 path parts stay in full and earlier folders are cut to their first letter at any width, instead of tide's shortening only when the prompt runs out of room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
| bin | ||
| config | ||
| docs | ||
| lib | ||
| packages | ||
| tests | ||
| .gitignore | ||
| install.sh | ||
| mise.toml | ||
| README.md | ||
dev.env
A personal terminal environment: a fish-first shell layer with a bash fallback, a few project and git commands, and CLI tools managed by mise.
What it is
- Shells. fish is the main shell, with the tide prompt, fzf.fish key
bindings, abbreviations and zoxide. bash gets the same aliases, the
projwrapper, fzf and zoxide, for SSH boxes and other machines. - Commands in
bin/: - Tools. mise installs fzf, fd, bat, ripgrep, eza, zoxide and mcfly on
every distro (
packages/mise.toml). Language runtimes are pinned per project bynewproject/devflow init. System packages are only what has to be system-level:- Arch and CachyOS: fish, mise, git, lsof, bash-completion.
- Debian and Ubuntu: fish, git, curl, lsof, bash-completion (no mise package, so you install mise yourself).
Install
git clone https://git.docherty.live/SethDocherty/dev.env.git ~/Projects/dev.env
bash ~/Projects/dev.env/install.sh --dry-run # see what it would do
bash ~/Projects/dev.env/install.sh
Or without a checkout:
curl -fsSL https://git.docherty.live/SethDocherty/dev.env/raw/branch/main/install.sh | bash -s -- --from https://git.docherty.live/SethDocherty/dev.env.git
install.sh clones the deploy copy to ~/.local/share/dev.env (on main)
and runs devenv install from it. That run:
- installs missing system packages (
--skip-packagesskips them); - links
~/.config/fish/conf.d/dev-env.fishand~/.config/mise/conf.d/dev-env.toml; - adds one marked block to
~/.bashrc; - runs
mise install; - sets up fisher, tide and fzf.fish.
Files it changes are first copied to ~/.config/dev-env-backups/. Running it
again changes nothing. Options: --dry-run, --yes, --skip-packages,
--from, --ref. See devenv.
Update
devenv update # fast-forward the deploy clone, re-apply the setup
devenv doctor # check everything
Uninstall
devenv uninstall # remove the entry points and the bash block
devenv uninstall --purge # also fish plugins and the deploy clone
Customize
~/.config/dev.env/local.fishand~/.config/dev.env/local.bashare loaded last and never tracked. In fish, adev_env_local_key_bindingsfunction adds your own key bindings.PROJECTS_DIRdefaults to~/Projects(else~/projects).PROJECTS_WORKTREE_DIRdefaults to$PROJECTS_DIR/worktrees.DEVENV_HOME,DEVENV_REFandDEVENV_REMOTEcontrol the deploy clone.
Develop
Edit in your working copy (~/Projects/dev.env). The live shell runs from
the deploy clone, which only changes on devenv update. That command
fast-forwards the clone from wherever it was installed from:
- From a working copy (
bash install.shin a checkout): commit tomainthere, and pull first if you merged on the server. Then rundevenv update. - From a URL (
--from <url>or the piped install): push tomain, then rundevenv update.
To switch an existing clone, run
git -C ~/.local/share/dev.env remote set-url origin <url>.
mise run test # shellcheck + the bats suite
Layout
| Path | Contents |
|---|---|
bin/ |
The commands; each has --help |
lib/ |
Shared bash code: lib.sh, devenv/, scaffold/ (project templates), mise helpers |
config/fish/ |
fish entry file, conf.d/ (env, tools, abbreviations), functions, plugins, tide setup, pure shadows |
config/bash/ |
The bash layer |
config/ripgreprc |
ripgrep defaults (RIPGREP_CONFIG_PATH) |
packages/ |
System package lists per distro and the mise tool drop-in |
install.sh |
Bootstrap: clone the deploy copy, run devenv install |
tests/ |
bats tests (mise run test) |
docs/ |
Reference pages |
Docs
From the shell: devdocs list, devdocs <page>, devdocs search <term>.