Comments (5)
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.
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.
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.
Great that you were able to solve it. 🙂
Please close the issue once you're happy.
from starship.
Thank you! I didn't realize these modules existed.
from starship.
Related Issues (20)
- Bump gitoxide version to re-enable windows-gnu builds HOT 1
- [WARN] - (starship::utils): Executing command "/usr/bin/git" timed out. HOT 11
- Starship causes unexistent command to be called and consequently showing an error HOT 4
- Prompt showing aws even when not assumed HOT 1
- Starship ignores `STARSHIP_CONFIG` environment variable on startup HOT 3
- custom commands not working inside starship bash shell HOT 4
- Fortune equivalent for starship?
- detect_input
- starship in Windows PowerShell only shows the current directory
- Current interface with IP Address info
- Windows: Escape Sequences Issue with `starship init nu` in Nushell HOT 3
- trailing spaces being removed from prompt when using nix_shell in tmux HOT 1
- Extra empty line at the top of the terminal HOT 1
- Init.nu fails after upgrading nushell from v0.93.0 to v0.94.1 HOT 2
- No Git Information/Status Shown in Prompt When Inside Git Repo With SHA256 Hashing
- [BUG] direnv style specifies a non-standard color HOT 1
- [custom] Inconsistent handling of colors from subshell when using custom module HOT 2
- Add option for aliasing known hostnames in config
- `starship module ...` not displaying any output to stdin with the exception of `starship module character`
- Kubernetes module not working on Powershell
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starship.