powerline-gen
powerline-gen
Powerline-style prompt generator
Usage
Example usage:
require "powerline-gen"
powerline = PowerlineGen.make do
pointing left if rand(0..1) == 0
separator
label(
text: "Hello world!",
text_color: :black,
background_color: :cyan
)
separator opposite_direction: true
label(
text: "test",
text_color: :white,
background_color: :blue
)
separator
label(
text: Dir.current,
text_color: :white,
background_color: :green
)
arrow color: :dark_gray, force_direction: left
label(
text: `whoami`.chomp,
text_color: :black,
background_color: :white,
spacing: ""
)
arrow color: :dark_gray, force_direction: right
arrow color: :light_gray
arrow color: :dark_gray
end
puts powerline
Contributors
- Zatherz - creator, maintainer
Repository
powerline-gen
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- over 7 years ago
- June 28, 2017
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 00:04:27 GMT
Languages