No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
SethDocherty 59e64d8800 feat(fish): Rainbow tide prompt with a fixed-length path
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>
2026-11-07 18:15:31 -05:00
bin feat(devenv): uninstall --purge --force deletes a clone with unsaved work 2026-11-06 22:40:09 -05:00
config feat(fish): Rainbow tide prompt with a fixed-length path 2026-11-07 18:15:31 -05:00
docs feat(devenv): uninstall --purge --force deletes a clone with unsaved work 2026-11-06 22:40:09 -05:00
lib feat(devenv): uninstall --purge --force deletes a clone with unsaved work 2026-11-06 22:40:09 -05:00
packages Decide: CLI tools from mise on every distro; fisher self-managed 2026-11-05 21:42:44 -05:00
tests feat(devenv): uninstall --purge --force deletes a clone with unsaved work 2026-11-06 22:40:09 -05:00
.gitignore Clean up repo state ahead of fish/mise refresh 2026-11-05 19:35:43 -05:00
install.sh fix(devenv): final-review fixes for the installer 2026-11-06 14:41:14 -05:00
mise.toml build: pin repo dev tools (bats, shellcheck) in mise.toml 2026-11-05 21:35:34 -05:00
README.md docs: fix final-review findings 2026-11-06 18:38:29 -05:00

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 proj wrapper, 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 by newproject / 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-packages skips them);
  • links ~/.config/fish/conf.d/dev-env.fish and ~/.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.fish and ~/.config/dev.env/local.bash are loaded last and never tracked. In fish, a dev_env_local_key_bindings function adds your own key bindings.
  • PROJECTS_DIR defaults to ~/Projects (else ~/projects). PROJECTS_WORKTREE_DIR defaults to $PROJECTS_DIR/worktrees.
  • DEVENV_HOME, DEVENV_REF and DEVENV_REMOTE control 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.sh in a checkout): commit to main there, and pull first if you merged on the server. Then run devenv update.
  • From a URL (--from <url> or the piped install): push to main, then run devenv 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>.