diff --git a/pages/common/starship-init.md b/pages/common/starship-init.md new file mode 100644 index 0000000000..b5ec8fac95 --- /dev/null +++ b/pages/common/starship-init.md @@ -0,0 +1,20 @@ +# starship init + +> Print shell integration code for starship. +> More information: . + +- 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}}`