Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 24, }, }, }, ), Raw( PartRaw { content: "starship", span: Span { start: Position { line: 6, column: 25, }, end: Position { line: 6, column: 33, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settingsFormat", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 8, column: 20, }, end: Position { line: 8, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 8, column: 25, }, end: Position { line: 8, column: 32, }, }, }, ), Raw( PartRaw { content: "toml", span: Span { start: Position { line: 8, column: 33, }, end: Position { line: 8, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 8, column: 38, }, end: Position { line: 8, column: 41, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settingsFile", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "settingsFormat", span: Span { start: Position { line: 10, column: 18, }, end: Position { line: 10, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generate", span: Span { start: Position { line: 10, column: 33, }, end: Position { line: 10, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "starship.toml", span: Span { start: Position { line: 10, column: 43, }, end: Position { line: 10, column: 56, }, }, }, ), ], span: Span { start: Position { line: 10, column: 42, }, end: Position { line: 10, column: 57, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 10, column: 58, }, end: Position { line: 10, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 10, column: 62, }, end: Position { line: 10, column: 70, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 13, column: 3, }, end: Position { line: 13, column: 10, }, }, }, ), Raw( PartRaw { content: "programs", span: Span { start: Position { line: 13, column: 11, }, end: Position { line: 13, column: 19, }, }, }, ), Raw( PartRaw { content: "starship", span: Span { start: Position { line: 13, column: 20, }, end: Position { line: 13, column: 28, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 14, column: 14, }, end: Position { line: 14, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 14, column: 30, }, end: Position { line: 14, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 14, column: 34, }, end: Position { line: 14, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "the Starship shell prompt", span: Span { start: Position { line: 14, column: 41, }, end: Position { line: 14, column: 66, }, }, }, ), ], span: Span { start: Position { line: 14, column: 40, }, end: Position { line: 14, column: 67, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 16, column: 16, }, end: Position { line: 16, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "settingsFormat", span: Span { start: Position { line: 17, column: 16, }, end: Position { line: 17, column: 30, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 17, column: 32, }, end: Position { line: 17, column: 36, }, }, }, ), ], span: Span { start: Position { line: 16, column: 26, }, end: Position { line: 17, column: 37, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 18, column: 17, }, end: Position { line: 18, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 19, column: 21, }, end: Position { line: 19, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 19, column: 25, }, end: Position { line: 19, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Configuration included in `starship.toml`.\n\nSee https://starship.rs/config/#prompt for documentation.\n", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 23, column: 7, }, }, }, ), ], span: Span { start: Position { line: 19, column: 31, }, end: Position { line: 23, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 25, }, end: Position { line: 24, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 31, }, end: Position { line: 25, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 27, column: 3, }, end: Position { line: 27, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 27, column: 12, }, end: Position { line: 27, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 27, column: 21, }, end: Position { line: 27, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 28, column: 5, }, end: Position { line: 28, column: 13, }, }, }, ), Raw( PartRaw { content: "bash", span: Span { start: Position { line: 28, column: 14, }, end: Position { line: 28, column: 18, }, }, }, ), Raw( PartRaw { content: "promptInit", span: Span { start: Position { line: 28, column: 19, }, end: Position { line: 28, column: 29, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "if [[ $TERM != \"dumb\" && (-z $INSIDE_EMACS || $INSIDE_EMACS == \"vterm\") ]]; then\n export STARSHIP_CONFIG=", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 30, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "settingsFile", span: Span { start: Position { line: 30, column: 34, }, end: Position { line: 30, column: 46, }, }, }, ), }, ), Raw( PartRaw { content: "\n eval \"$(", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 31, column: 17, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 31, column: 19, }, end: Position { line: 31, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "starship", span: Span { start: Position { line: 31, column: 24, }, end: Position { line: 31, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/starship init bash)\"\nfi\n", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 33, column: 5, }, }, }, ), ], span: Span { start: Position { line: 28, column: 32, }, end: Position { line: 33, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 35, column: 5, }, end: Position { line: 35, column: 13, }, }, }, ), Raw( PartRaw { content: "fish", span: Span { start: Position { line: 35, column: 14, }, end: Position { line: 35, column: 18, }, }, }, ), Raw( PartRaw { content: "promptInit", span: Span { start: Position { line: 35, column: 19, }, end: Position { line: 35, column: 29, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "if test \"$TERM\" != \"dumb\" -a \\( -z \"$INSIDE_EMACS\" -o \"$INSIDE_EMACS\" = \"vterm\" \\)\n set -x STARSHIP_CONFIG ", span: Span { start: Position { line: 36, column: 1, }, end: Position { line: 37, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "settingsFile", span: Span { start: Position { line: 37, column: 34, }, end: Position { line: 37, column: 46, }, }, }, ), }, ), Raw( PartRaw { content: "\n eval (", span: Span { start: Position { line: 36, column: 1, }, end: Position { line: 38, column: 15, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 38, column: 17, }, end: Position { line: 38, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "starship", span: Span { start: Position { line: 38, column: 22, }, end: Position { line: 38, column: 30, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/starship init fish)\nend\n", span: Span { start: Position { line: 36, column: 1, }, end: Position { line: 40, column: 5, }, }, }, ), ], span: Span { start: Position { line: 35, column: 32, }, end: Position { line: 40, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 42, column: 5, }, end: Position { line: 42, column: 13, }, }, }, ), Raw( PartRaw { content: "zsh", span: Span { start: Position { line: 42, column: 14, }, end: Position { line: 42, column: 17, }, }, }, ), Raw( PartRaw { content: "promptInit", span: Span { start: Position { line: 42, column: 18, }, end: Position { line: 42, column: 28, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "if [[ $TERM != \"dumb\" && (-z $INSIDE_EMACS || $INSIDE_EMACS == \"vterm\") ]]; then\n export STARSHIP_CONFIG=", span: Span { start: Position { line: 43, column: 1, }, end: Position { line: 44, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "settingsFile", span: Span { start: Position { line: 44, column: 34, }, end: Position { line: 44, column: 46, }, }, }, ), }, ), Raw( PartRaw { content: "\n eval \"$(", span: Span { start: Position { line: 43, column: 1, }, end: Position { line: 45, column: 17, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 45, column: 19, }, end: Position { line: 45, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "starship", span: Span { start: Position { line: 45, column: 24, }, end: Position { line: 45, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/starship init zsh)\"\nfi\n", span: Span { start: Position { line: 43, column: 1, }, end: Position { line: 47, column: 5, }, }, }, ), ], span: Span { start: Position { line: 42, column: 31, }, end: Position { line: 47, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 27, column: 28, }, end: Position { line: 48, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 50, column: 3, }, end: Position { line: 50, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 50, column: 8, }, end: Position { line: 50, column: 19, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "starship", span: Span { start: Position { line: 50, column: 27, }, end: Position { line: 50, column: 35, }, }, }, ), Raw( PartRaw { content: "meta", span: Span { start: Position { line: 50, column: 36, }, end: Position { line: 50, column: 40, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 50, column: 41, }, end: Position { line: 50, column: 52, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 12, column: 4, }, end: Position { line: 51, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 51, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 51, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 51, column: 2, }, }, }, )