Command Line
Installing the nib command
Nib doesn’t put itself on your PATH automatically. In Preferences, click “Install ’nib’ command in PATH” to symlink the app into a standard location (the same approach VS Code’s “Install ‘code’ command” uses). If that needs admin permission Nib can’t get automatically, it gives you a ready-to-paste command that installs into your user directory instead, no admin access required.
Usage
nib # restore the previous session, or one empty tab
nib notes.txt # open a single file
nib main.rs config.toml # open multiple files, each in its own tab
- With no arguments,
nibrestores whatever was open in the last session (or a single empty untitled tab if there wasn’t one). - With file arguments, each named file opens in its own new tab, added on top of the restored session rather than replacing it. The last file named ends up as the active tab.
- Relative paths are resolved against your shell’s current directory at launch time, so
nib ../foo.txtworks as you’d expect.
This is the same file-opening path used by File > Open and by dropping files onto the Nib window or a Dock icon.