Scroll to navigation

init(1) General Commands Manual init(1)

NAME

init - Print shell initialization script

SYNOPSIS

init [-n|--name] [--default] [-h|--help] <SHELL>

DESCRIPTION

Prints shell configuration to set up terminal-integrated sessions. Each terminal gets a persistent goose session that automatically resumes.

Setup:
echo 'eval "$(goose term init zsh)"' >> ~/.zshrc
source ~/.zshrc

Nushell:
let init = ($nu.cache-dir | path join "goose-term-init.nu")
^goose term init nu | save --force $init
source $init

With --default (anything typed that isn't a command goes to goose):
echo 'eval "$(goose term init zsh --default)"' >> ~/.zshrc
^goose term init nu --default | save --force $init

OPTIONS

Name for the terminal session
When enabled, anything you type that isn't a valid command will be sent to goose. Supported for zsh, bash, and nu.
Print help (see a summary with '-h')
<SHELL>
Shell type (bash, zsh, fish, nu, powershell)

Possible values:

  • bash
  • zsh
  • fish
  • nu
  • powershell

SEE ALSO

goose(1), goose-term(1), goose-term-info(1), goose-term-run(1)

init