From 6b40df8c17b77fe6c005fb217426f710411c8f1b Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Tue, 18 May 2021 15:09:17 -0300 Subject: [PATCH] starship-init: add page (#5972) --- pages/common/starship-init.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/starship-init.md 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}}`