1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:22:08 +02:00
tldr/pages/common/starship-init.md
Axel Navarro 778a7a14c3
starship: mention subcommand page (#6583)
* Update starship.md

* starship-init: fix typo
2021-09-22 19:15:45 +01:00

20 lines
486 B
Markdown

# starship init
> Print shell integration code for starship.
> More information: <https://starship.rs>.
- Display the subcommand help:
`starship init --help`
- Print the starship integration code for the specified shell:
`starship init {{bash|elvish|fish|ion|powershell|tcsh|zsh}}`
- Append the `starship` integration code to `~/.bashrc`:
`starship init {{bash}} >> {{~/.bashrc}}`
- Append the `starship` integration code to `~/.zshrc`:
`starship init {{zsh}} >> {{~/.zshrc}}`