Customization

The Jitzu shell supports theme customization, startup configuration, aliases, and path labels to personalize your workflow.

Theme Configuration

Colors are controlled by ~/.jitzu/colours.json. A default configuration is written automatically on first launch. All values are hex color strings (e.g. #87af87).

json
{
"syntax": {
  "command": "#87af87",
  "keyword": "#87afd7",
  "string": "#afaf87",
  "flag": "#87afaf",
  "pipe": "#af87af",
  "boolean": "#d7af87"
},
"git": {
  "branch": "#808080",
  "dirty": "#d7af87",
  "staged": "#87af87",
  "untracked": "#808080",
  "remote": "#87afaf"
},
"prompt": {
  "directory": "#87d7ff",
  "arrow": "#5faf5f",
  "error": "#d75f5f",
  "user": "#5f8787",
  "duration": "#d7af87",
  "time": "#808080",
  "jobs": "#87afaf"
},
"ls": {
  "directory": "#87afd7",
  "executable": "#87af87",
  "archive": "#d75f5f",
  "media": "#af87af",
  "code": "#87afaf",
  "config": "#d7af87",
  "project": "#d7af87",
  "size": "#87af87",
  "dim": "#808080"
},
"error": "#d75f5f",
"prediction": {
  "text": "#808080",
  "selected": {
    "bg": "#303050",
    "fg": "#ffffff"
  }
},
"selection": {
  "bg": "#264f78",
  "fg": "#ffffff"
},
"dropdown": {
  "gutter": "#404040",
  "status": "#5f87af"
}
}

Color Categories

  • syntax — live input highlighting (commands, keywords, strings, flags, pipes, booleans)
  • git — prompt git status indicators (branch, dirty, staged, untracked, remote ahead/behind)
  • prompt — prompt elements (directory, arrow, error state, user, duration, clock, job count)
  • ls — file listing colors by type (directories, executables, archives, media, code, config, project files)
  • prediction — history prediction ghost text and dropdown selection
  • selection — text selection highlight
  • dropdown — completion dropdown gutter and status bar

Edit any value and restart the shell to apply changes. Malformed entries are silently ignored and fall back to defaults.

Windows Terminal Tabs

Jitzu reports the current working directory to Windows Terminal using its supported OSC 9;9 integration sequence. It also sets the tab title with the standard OSC 2 sequence so the active tab can identify the current directory.

Windows Terminal does not support dynamically changing the active tab color through ANSI or OSC escape sequences. Jitzu therefore does not emit iTerm2-only tab color sequences such as OSC 6, because Windows Terminal would ignore them.

For tab colors in Windows Terminal, use static profile or launch-time configuration:

json
{
"profiles": {
  "defaults": {
    "tabColor": "#87af87"
  }
}
}
Shell
wt new-tab --tabColor "#87af87"

Pagers

When LESS is unset, Jitzu sets it to FR. This lets Git’s less pager use the alternate screen, so resizing redraws the page without adding repeated text to scrollback. Colors are preserved, and output that fits on one screen exits immediately.

An existing LESS value is preserved. To choose different options, set LESS before starting Jitzu or add an export LESS="..." command to your startup configuration.

Startup Configuration

The file ~/.jitzu/config.jz is executed automatically when the shell starts, similar to .bashrc or .zshrc. Each line is run as a shell command, so you can set aliases, labels, handoffs, environment variables, and define Jitzu functions that will be available in every session.

Jitzu
// ~/.jitzu/config.jz

// Set up aliases
alias ll="ls -la"
alias gs="git status"
alias gp="git push"

// Set up path labels
label git ~/git
label docs ~/Documents

// Follow worktrunk into the worktree it switches to
handoff git-wt WORKTRUNK_DIRECTIVE_CD_FILE cd

// Set environment variables
export EDITOR=nvim
export DOTNET_CLI_TELEMETRY_OPTOUT=1

// Define helper functions
fun greet(): String {
  `Good morning, {whoami}!`
}

Lines starting with // are treated as comments and skipped.

Find Ignore Rules

find skips hidden entries and respects .gitignore rules in Git repositories, repository .git/info/exclude, and .ignore and .fdignore files. Rules can exclude files or directories, and nested ignore files and ! negations are supported. .fdignore takes precedence over .ignore, which takes precedence over Git ignore rules.

To exclude generated folders, add patterns to your repository’s .gitignore or a .fdignore file in the directory you search:

text
node_modules/
bin/
obj/
release/
.cache/
Shell
find -F Float.Setup.exe
find -I -F Float.Setup.exe
find -HI
find -E '*.bak'

-H includes hidden entries, -I bypasses ignore files, and -HI or -u includes both hidden and ignored entries. -E excludes a glob for a single search, even with -I. The previous JITZU_FIND_IGNORE environment setting and --include-ignored option are replaced by ignore files and these flags.

Aliases

Aliases map short names to longer commands. They persist to disk across sessions and are automatically expanded when the alias name appears as the first word of a command.

Shell
> alias ll="ls -la"
Alias set: ll → ls -la

> ll
d-----       -  Jan 15 09:44  src/
-a-r--   2.5K  Jan 15 14:23  Program.cs

> aliases
ll → ls -la
gs → git status

> unalias ll
Alias removed: ll

Aliases are stored in the application data directory (e.g. ~/.local/share/Jitzu/aliases.txt on Linux or %APPDATA%/Jitzu/aliases.txt on Windows).

Path Labels

Labels map short names to directory paths. Use a label by appending a colon, e.g. git:. Labels work in cd, file arguments, and tab completion.

Shell
> label api ~/projects/api
Label set: api → /home/simon/projects/api

> cd api:
> pwd
/home/simon/projects/api

> cd api:src/controllers
> cat api:README.md

> labels
api → /home/simon/projects/api
docs → /home/simon/Documents

> unlabel api
Label removed: api

Labels expand transparently in file arguments, so commands like cat api:src/Program.cs and ls api: work as expected. Tab completion also understands label prefixes.

Handoffs

A handoff lets an external command pass a value back to the shell. Some tools work this way: they read a file path from an environment variable, write a result into that file, and expect the shell to act on it once they exit.

Shell
handoff <command> <variable> <action...>

Each time <command> runs, Jitzu creates an empty temporary file and passes its path to the command in <variable>. After the command exits, Jitzu reads the file, trims surrounding whitespace, and runs <action...> with the contents as one final argument. The action runs whether the command succeeded or failed. An empty file runs nothing. The temporary file is deleted afterwards.

  • <command> matches the executable’s file name, with or without its extension, so git-wt, git-wt.exe and a full path to it all match. Matching ignores case on Windows.
  • <variable> is set for that command’s process only. The shell’s own environment and other commands never see it.
  • <action...> is any builtin or external command, such as cd, echo or a script.
  • A command can have several handoffs, one per variable. Registering the same command and variable again replaces the action.
  • Handoffs apply to commands run in the foreground. Pipelines, redirected commands and background jobs run without them.

Handoffs last for the session. Add them to ~/.jitzu/config.jz to have them in every session.

Shell
> handoff git-wt WORKTRUNK_DIRECTIVE_CD_FILE cd
git-wt $WORKTRUNK_DIRECTIVE_CD_FILE → cd

> git-wt switch feature/search
✓ Switched to worktree for feature/search @ ~/git/project.feature-search
~/git/project.feature-search >

> handoff
git-wt $WORKTRUNK_DIRECTIVE_CD_FILE → cd

> unhandoff git-wt
Handoff removed: git-wt

Worktrunk

Worktrunk changes into the worktree it switches to by writing the target directory to the file named in WORKTRUNK_DIRECTIVE_CD_FILE. Register one handoff for each name you run it by:

Jitzu
handoff git-wt WORKTRUNK_DIRECTIVE_CD_FILE cd
handoff wt WORKTRUNK_DIRECTIVE_CD_FILE cd

git wt (with a space) runs worktrunk as a child of git, and worktrunk does not change directory in that case. Run git-wt or wt instead.