Git Product home page Git Product logo

Comments (5)

DerRockWolf avatar DerRockWolf commented on June 22, 2024 1

What do you want the result to look like?
You can align modules to the right above the line where you can type, using the fill module.

from starship.

roguh avatar roguh commented on June 22, 2024 1

Nevermind, I figured out exactly my desired output with a mix of $fill and $line_break, no more right_prompt either (which means no more BASH-incompatibility).

Here's what I used to get this:

May 13 13:48-06:00                                              main   9b78  gke-dev-cluster
confs $ (cursor here)
format = "$time$shell${custom.machine_architecture}$hostname$username$jobs$all$git_status$fill$battery$status$cmd_duration$git_branch${custom.git_metrics_main_added_deleted}$git_commit$conda$kubernetes$line_break$directory$character"
right_format = ""
add_newline = false

[line_break]
# Prompt is one line, not two lines
disabled = false

from starship.

roguh avatar roguh commented on June 22, 2024

The $fill module fits my needs, thank you.

Here's the output I had:

May 13 13:39-06:00
confs $ (cursor here) .....................................main   9b78  gke-dev-cluster

The output now:

May 13 13:39-06:00 confs $ .....................................main   9b78  gke-dev-cluster
(cursor here)

I moved my right prompt modules to the main prompt and used fill.

Ideally, I'd want the right prompt to be on the same line as the date, like this:

May 13 13:39-06:00 .....................................main   9b78  gke-dev-cluster
confs $ (cursor here)

Either of these fits my needs since they give me a way to copy-paste just the command and output without my prompt.

from starship.

DerRockWolf avatar DerRockWolf commented on June 22, 2024

Great that you were able to solve it. 🙂

Please close the issue once you're happy.

from starship.

roguh avatar roguh commented on June 22, 2024

Thank you! I didn't realize these modules existed.

from starship.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.