Nebula Terminal
English

Nebula Terminal

Documentation

Comment installer Nebula Terminal, tout ce qu'il fait, les commandes de Nebula et les raccourcis clavier.

Cette page est en anglais, comme la documentation du dépôt.

Install

Windows

Download the latest installer from Releases:

  • Nebula.Terminal_<version>_x64-setup.exe: per-user installer (recommended)
  • Nebula.Terminal_<version>_x64_en-US.msi: MSI for managed machines
  • Nebula-Terminal-<version>-windows-x64-portable.zip: no installation, just unzip and run
  • Nebula.Terminal_<version>_arm64-setup.exe and Nebula-Terminal-<version>-windows-arm64-portable.zip: the same for Windows on Arm (Snapdragon laptops, Surface Pro X)

Releases are not code-signed yet, so Windows SmartScreen may warn you the first time. Check the file against SHA256SUMS.txt from the same release before you continue:

Get-FileHash '.\Nebula.Terminal_1.2.0_x64-setup.exe' -Algorithm SHA256

With Scoop, which installs the portable version and adds the nebula-terminal command. scoop update nebula-terminal follows new releases:

scoop install https://github.com/awizzz/nebula-terminal/releases/latest/download/nebula-terminal.json

Requires Windows 10 1809 or later (ConPTY) and the WebView2 runtime, which ships with Windows 11 and current Windows 10 builds.

Linux

From the same Releases page:

  • Nebula.Terminal_<version>_amd64.deb: Debian, Ubuntu, Linux Mint, Pop!_OS
  • Nebula.Terminal-<version>-1.x86_64.rpm: Fedora, openSUSE, RHEL and the like
  • Nebula.Terminal_<version>_amd64.AppImage: any distribution, nothing to install, and it updates itself
  • arm64 and aarch64 versions of the three for 64-bit Arm machines
sudo apt install ./Nebula.Terminal_2.11.0_amd64.deb
sudo dnf install ./Nebula.Terminal-2.11.0-1.x86_64.rpm
chmod +x Nebula.Terminal_2.11.0_amd64.AppImage && ./Nebula.Terminal_2.11.0_amd64.AppImage

sha256sum -c SHA256SUMS.txt --ignore-missing checks what you downloaded. You need a distribution from 2022 or later (glibc 2.35 and WebKitGTK 4.1): Ubuntu 22.04, Debian 12, Fedora 36 or newer. AppImages need FUSE 2, which Ubuntu 24.04 leaves out: sudo apt install libfuse2t64.

Your login shell opens by default. Bash and zsh get shell integration (command blocks, notifications, new tabs in the same folder), Ctrl+Z suspends a program in Nebula as in bash, and the deb and rpm packages add the nebula-terminal command. What Linux doesn't have yet: the quick terminal, and what belongs to Windows (default terminal, Explorer menu, administrator windows, Mica).

Nebula, the built-in interpreter

If you know Linux, you already know Nebula. ls, cd, cat, cp, mv, rm, grep, find, sed, awk, diff, head, tail, sort, wc, tree, ps, kill and about 70 more commands work on Windows with the options you're used to. Windows programs like git, node, python or code run as usual.

~/projects/app on  main !1 ?1
❯ grep -rn TODO src | head -5
  • The real GNU behaviour. The core commands come from uutils coreutils, a faithful MIT-licensed rewrite of GNU coreutils, and sed, diff and cmp from the uutils sed and diffutils. grep, find, tree, ps, kill, xargs and open are written for Nebula.
  • A real awk. The POSIX language (patterns, fields, arrays, functions, printf, getline, pipes to and from commands) and the gawk functions people reach for: gensub, strftime, asort, match with groups. It was checked line by line against GNU awk.
  • Shell syntax you expect. Pipes, &&, ||, ;, redirections (>, >>, 2>&1, &>, here-documents), $VAR, export, $(…), ~, *.txt, **/*.rs for every subfolder, {a,b} and {1..10}, aliases, !! and !$. /c/Users and /dev/null work too.
  • Real scripts. if, for, while, case, functions with local variables, arrays and associative arrays, $((…)), [[ … ]], read, mapfile, ${name%.txt} and the other ${…} forms, getopts, set -e, trap. Run a script with nebula-sh deploy.sh or ./deploy.sh.
  • Jobs, as in bash. cmd & runs while you keep typing; jobs, wait, fg and kill %1 handle them. Ctrl+Z pauses the command in front (in Nebula Terminal), then fg or bg resumes it, and kill -STOP and kill -CONT work too. A job can't take the keyboard, and Ctrl+C only stops what runs in front.
  • Nicer than a plain prompt, and yours to shape. It shows the folder, Git branch and changes, how long slow commands took, and failed exit codes; ~/.nebularc can add the time, background jobs, an admin marker or the Node, Python and Rust versions of your project, reorder and recolor it all, or hand it to Starship. Commands are colored as you type (green if they exist, red if not), suggestions from your history appear in grey (→ to accept).
  • Tab completion that knows things. Commands and paths, the options of every Nebula command (ls --<Tab>), Git subcommands and branches, the scripts of your package.json (npm run, pnpm, yarn, bun), the commands of cargo, winget, docker, kubectl, gh, az, terraform, helm, dotnet, go, pip, uv and more, Makefile targets, $VARIABLES and your SSH hosts. Add your own in ~/.nebula-completions.
  • Examples when you need them. help grep shows a few commands for what people do with grep, the way tldr does, for 40 commands.
  • Finds what you did before. Ctrl+R searches your history as you type, fuzzily: gpo finds git push origin. z proj jumps to the folder you visit most that matches, learned from your cds.
  • ls and tree with icons and colors on screen. When the output goes to a file or another command, it stays plain.
  • Helpful errors. Typing gti suggests git, and dir, cls or findstr point to ls, clear and grep.

Your history is saved in %APPDATA%\Nebula\history.txt, and the folders z knows in dirs.txt next to it. Aliases and variables can go in ~/.nebularc, which runs at startup:

alias gs='git status'
export EDITOR=code

# The prompt: segments in order, their colors, the symbol, and one line instead of two.
NEBULA_PROMPT="folder git node python rust jobs duration status time"
NEBULA_PROMPT_COLORS="folder=bold+cyan time=dim git=#c678dd"
NEBULA_PROMPT_SYMBOL="❯"
NEBULA_PROMPT_LINES=2

Prompt segments: folder, git, duration, status, time, user, host, admin, jobs, node, python and rust. Colors take a name (red, bright-blue, gray…), #rrggbb or a number from 0 to 255, plus bold, dim, italic or underline, joined by +. NEBULA_PROMPT=starship uses Starship when it's installed.

nebula-sh.exe also works on its own in Windows Terminal or any other terminal. Set NEBULA_ICONS=1 there if your font includes Nerd Font icons.

A short script, to give an idea:

#!/usr/bin/env nebula
set -e
for file in *.log; do
  size=$(wc -c < "$file")
  if (( size > 1000000 )); then
    echo "${file%.log} is $(( size / 1024 )) KB"
  fi
done

Your own completions go in ~/.nebula-completions, one per line: the command, the words before the one to complete, that word, and what it means after a colon.

deploy staging: the staging servers
deploy production: the real thing
deploy production eu

What you get

  • Your shells, detected automatically. Nebula, PowerShell 7, Windows PowerShell, Command Prompt, Git Bash and WSL, plus one entry for each WSL distribution and for each host in your ~/.ssh/config. Nebula is the default, and you can pick another in Settings.
  • Your own profiles and SSH connections. Settings → Profiles runs any program in a tab, with its own arguments, starting folder and color, and you see how the arguments will be split before you save. Add SSH connection does the same for a server: user, port, key file and port forwards, with the ssh command shown as you type. A connection that drops reconnects on its own, and any profile can set its own environment variables. For a server you reach once, type user@server in the palette.
  • A look per profile. Give any profile its own theme, font and size. Its tabs wear them, and the whole window takes its colors while one is in front. Admin windows are red, so an elevated shell never passes for an ordinary one.
  • Any shell as administrator. The shield next to a shell in the new-tab menu opens it in an admin window, after the usual Windows confirmation. Every tab there is elevated and the title bar says so, while your other tabs stay as they are. Open as administrator on a tab does the same in its folder, File Explorer has an entry for it too, and Settings → Keyboard can give it a shortcut.
  • Workspaces. Save the open tabs under a name, with their splits and folders, and open them again in one click from the new-tab menu or the palette, or every time the app starts. Each pane can start a command too, like npm run dev.
  • Tabs, split panes and windows. Drag tabs to reorder them, middle-click to close, and right-click for more. They can sit across the top or in a list down the side. Double-click a tab to rename it, give it a color, or pin it so it stays on the left and can't be closed by accident. Split any pane right or down, up to eight panes per tab, and drag the dividers or press Alt+Shift+Arrow to resize them; the palette swaps panes and evens them out. Panes can show their title and folder, and a pane that shows a log can be made read-only. A pane can move to a tab of its own, a tab dragged onto a pane splits it, and a tab dragged out of the window gets its own, or joins another window: the shells keep running.
  • Images and progress. Sixel and iTerm2 images show in the terminal (imgcat photo.png in Nebula), programs that report progress (winget, for one) fill a bar on their tab and on the taskbar button, and vim or tmux over SSH can copy to your clipboard, never read it.
  • Command palette (Ctrl+Shift+P). Every action, shell and theme in one searchable list, and Ctrl+Shift+Space jumps to any tab by a few letters of its name or folder. The commands you save in Settings run from there too, or from a shortcut of their own, with blanks like {{host}} filled in as they start.
  • A quick terminal on a shortcut. Win+` drops a terminal down from the top of the screen over any app, and puts it away again. It keeps its own tabs, and its height and shortcut are yours to pick.
  • Eleven themes, and 850 more in a gallery: Nord, Rosé Pine, Catppuccin, Solarized, Kanagawa, GitHub and the rest, searchable and sorted into dark and light. Click one and the terminal wears it at once. You can also import schemes from Windows Terminal or iTerm2, and edit any theme: change its 16 colors, background, text and accent with a live preview, get warned when a color is hard to read, and export the result for Windows Terminal. The window chrome follows the terminal colors, so a light theme gives you a light app, and Follow Windows switches between a dark and a light theme with Windows' app mode. You can also pick an accent color, a Mica, solid or image background, and adjust transparency.
  • Settings without a config file, and on every PC. Fonts, cursor, padding, scrollback, profiles, starting folder and shortcuts, all found from one search box, and every change applies immediately. Point Sync settings at a file in OneDrive, Dropbox or a Git repository, and your other PCs get the same themes, shortcuts and saved commands, with no account, or save a backup file and restore it when you need it.
  • For everyone. Screen reader support for Narrator, NVDA and JAWS, two high contrast themes that keep every color at 7:1, and terminals that follow Windows' contrast themes on their own.
  • Safe paste. Pasting several lines shows exactly what will run before it reaches the shell, and a single pasted line never runs on its own.
  • Shell integration, built in. PowerShell, Git Bash and WSL (bash) mark their commands and report their folder without any setup, so notifications, command jumps and new tabs in the current folder work there as they do in Nebula. Your own profile and startup files still run.
  • Knows when you're done. When a long command finishes in a tab you're not looking at, you get a Windows notification and a green or red dot on the tab.
  • Updates itself. When a new version is out, the app offers to install it and restarts. You can also check from Settings → About.
  • Opens from Explorer and from any shell. Right-click a folder and choose Open in Nebula Terminal, or type nebula-terminal . in cmd, PowerShell, Git Bash or WSL. Both open a tab in the window you already have. Open in Nebula Terminal (Administrator) opens an admin window there instead.
  • Your default terminal, if you want. On Windows 11, Settings → Behavior makes Nebula Terminal the default terminal: cmd, scripts and other console programs started from the Start menu or Explorer open in a tab. If you'd rather stay in Windows Terminal, the same page adds Nebula to its profiles.
  • Click a path to open it. Ctrl+Click on src/main.rs:42 in a compiler error or a grep result opens the file at that line, in VS Code, Cursor, the app Windows uses or a command you choose. Folders open in File Explorer.
  • Windows habits. Ctrl+C copies when text is selected and interrupts otherwise, Ctrl+V pastes, and dropping files inserts their quoted paths. Copy with colors, in the right-click menu, pastes into Word or a chat with the terminal's colors, and Ctrl+Shift+M selects with the keyboard alone.
  • Type in every pane at once. Ctrl+Shift+B sends what you type to all the panes of a tab, and Type in every tab, in the palette, to every tab of the window, to run the same command on several servers or shells. A colored outline shows when it's on.
  • Every command is a block. Point at a finished command to see how long it took, copy it, copy its output or both as Markdown, or run it again.
  • Find in every tab (Ctrl+Shift+Alt+F), save a pane's output to a text file or a web page with its colors from its right-click menu, or log everything it prints to a file until you stop.
  • Watch a tab. Get a notification when a tab you're not looking at prints something, or when a long job has been quiet for 30 seconds.
  • Highlights. Words like error or FAILED stand out in color in every pane, with a mark by the scrollbar, and can notify you when they show up in another tab.
  • Jump between commands. Ctrl+↑ and Ctrl+↓ scroll from one prompt to the next, a click on a prompt selects that command's output, and failed commands leave a red mark by the scrollbar. Copy last command output is in the palette and the right-click menu.
  • Opens where you are. New tabs and splits start in the folder of the shell you're in, and the new-tab menu keeps the folders you were in lately. Otherwise shells start in your user folder, or your Desktop, Documents or any folder you pick.
  • Picks up where you left off. Your tabs, their names and colors, your splits and the folder each one was in are restored on launch, and each pane shows what it printed last time above a fresh shell.

Keyboard shortcuts

ActionShortcut
New tabCtrl+Shift+T
Close tabCtrl+Shift+W
Next / previous tabCtrl+Tab / Ctrl+Shift+Tab
Go to tab 1–9Ctrl+Alt+1 … Ctrl+Alt+9
Split right / downCtrl+Shift+D / Ctrl+Shift+E
Move to the pane left, right, above or belowAlt+Arrow
Resize the pane in frontAlt+Shift+Arrow
Close paneCtrl+Shift+Q
Find (Alt+C match case, Alt+W whole word, Alt+R regex)Ctrl+Shift+F
Previous / next commandCtrl+↑ / Ctrl+↓
Type in every paneCtrl+Shift+B
Zoom the pane in frontCtrl+Shift+Z
Find in every tabCtrl+Shift+Alt+F
Switch to a tabCtrl+Shift+Space
Mark mode (select with the keyboard)Ctrl+Shift+M
Pause the command in front (Nebula)Ctrl+Z
Reopen the tab closed lastCtrl+Shift+Alt+T
Command paletteCtrl+Shift+P
SettingsCtrl+,
Zoom in / out / resetCtrl+= / Ctrl+- / Ctrl+0 (or Ctrl+Wheel)
Zoom the text of one paneCtrl+Shift+Wheel
Open a link or a file pathCtrl+Click
Quick terminal, from any appWin+` (the key under Escape)

All of these except going to a tab by number, moving between panes and opening links can be changed in Settings → Keyboard, and the quick terminal's in Settings → Behavior. The recorder warns you when two actions share a shortcut.

What's next

Next up: one history of the commands from every shell, recording a pane to play back or share, a portable copy that keeps its settings next to it, and tabs from the keyboard. The winget package is in review. See the roadmap, and open an issue for anything you'd like to see.

Build from source

You need Node.js 24 and Rust 1.98.1 (pinned in rust-toolchain.toml). On Windows, the MSVC build tools and WebView2. On Linux, WebKitGTK 4.1 and a few libraries; on Debian or Ubuntu:

sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev patchelf

Then:

git clone https://github.com/awizzz/nebula-terminal.git
cd nebula-terminal
npm ci
npm run tauri dev      # builds the Nebula interpreter, then runs the app with hot reload
npm run tauri build    # build the installers into src-tauri/target/release/bundle

npm run dev opens the interface in a browser with a fake session. That's handy for UI work, but no shell runs there.

See CONTRIBUTING.md for the checks CI runs and docs/architecture.md for how the code is organized.

License

PolyForm Shield 1.0.0. Use Nebula Terminal for anything, including at work, read the code and send pull requests; just don't use the code to build a product that competes with it. Versions up to 1.1.0 were released under the MIT License and stay under it.

Nebula ships uutils coreutils and sed (MIT), uutils diffutils (MIT or Apache 2.0) icons from Nerd Fonts (MIT, see src/assets/fonts/LICENSE-nerd-fonts.txt), and the color schemes of the theme gallery from iTerm2-Color-Schemes (MIT, see src/assets/LICENSE-color-schemes.txt; each scheme belongs to its author).