starship-cfg

command module
v0.0.0-...-c488ef4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

Starship is great but it doesn't allow you its configuration to come from more than one file. This is a problem if there are certain things in your configuration that you would not like to be public.

There does not seem to have an appetite to adress this:

This tool will do this before starship loads. It works by:

  1. reading all *.toml files from ${XDG_CONFIG_HOME}/starship.d/ (typically ~/.config/starship.d)
  2. merging them
  3. writing the result to ${XDG_CONFIG_HOME}/starship.toml

Installation

via go

go install github.com/starkers/starship-cfg

download a release

grab a release binary that is compatible with your platform and manually put it into your $PATH

Usage

fish

TLDR: before running starship init fish | source , run starship-cfg

if status is-interactive

    if command -s starship-cfg > /dev/null
        starship-cfg
    else
        echo '#WARN: starship-cfg not installed'
    end

    if command -s starship > /dev/null
        starship init fish | source
    else
        echo '#WARN: starship not installed'
    end
end

Don't forget to move your config(s) into ~/.config/starship.d/ !

TODO

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL