'$git_branch$git_commit' is a format string with two variables named git_branch and git_commit.'$version' is a format string with a variable named version.The name of a variable can only contain letters, numbers and _. # VariableĪ variable contains a $ symbol followed by the name of the variable. You can use texts, variables and text groups in a format string. Most modules have an entry called format that configures the display format of the module. More escaping, newlines in declarations can be ignoredįormat strings are the format that a module prints all its variables with. The following Starship syntax symbols have special usage in a format string and must be escaped to display as that character: $ ( ). In TOML syntax, text values (opens new window) are declared with ', ", ''', or """. via in "nodejs") and an empty space as a suffix. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.īy convention, most modules have a prefix of default terminal color (e.g. Variable: Smaller sub-components that contain information provided by the module. For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project. Module: A component in the prompt giving information based on contextual information from your OS. setenv ( 'STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp' ) # Terminology
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |