Comments (10)
+1
from halloweenbash.
Thanks for providing feedback. This feature would be helpful, but it would be very important to preserve the ease of use in the UI controls.
from halloweenbash.
Okay, what about a two step process then? The current color generator would create a box depending on which {fore,back}ground color you selected, which you could then drag into the configuration box to apply it.
Note that a "color reset" box would be probably needed as well.
from halloweenbash.
@Likeyn That would be one way to do it. I am concerned about having another step in the process and finding the right balance between ease of use and power features. There are many excellent color options that HalloweenBash does not handle at the moment; for many reasons including 1.) color controls are tricky to implement, 2.) a user should not feel overwhelmed with decisions to make and steps to take.
from halloweenbash.
You already handle all other elements the way I propose you handle color:
as boxes to drag around, so UI-wise there's no complication. Just make
sure to reset the colors automatically at the end of the prompt.
from halloweenbash.
@nicowilliams, picking multiple colors is a useful feature, but there are a lot of specific implementation details that remain unanswered.
Should you send a pull request, I'd be happy to review it. Thanks
from halloweenbash.
It's just a suggestion. I already have my own fairly hairy PS1 setup the
way I want, including switching to different PS1s depending on whether $PWD
is inside a git/hg/fossil workspace, and I'm not going to switch, so no PR
from me (sorry). But it is nice to play with other possibilities using
your HalloweenBash, and other users may find it very helpful. I'll stop
making noise now :)
from halloweenbash.
I was also wondering about this. Even without the --no-color
flag, everything still comes up in bash as the default foreground color.
For example:
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\w \$(parse_git_branch) \@\n$ "
from halloweenbash.
Hi @kevinSuttle,
Are you referring to switching colors between different elements? Your example adds the current git branch.
Thanks for your feedback
from halloweenbash.
@xta, yes. Switching between elements.
from halloweenbash.
Related Issues (16)
- Support current git branch
- git-branch problem HOT 4
- Offer a way to remove components from configuration HOT 3
- Removing everything from 'Your Configuration' is irreversible
- Advise to start with ': ' first and end with '; ' -- helps cut-n-paste HOT 1
- The orange makes my eyes bleed HOT 1
- Escape $ so it becomes # after switching to root HOT 3
- Git Branch Colors HOT 2
- Core Temperature -> Linux / Mac HOT 2
- Free RAM -> Linux/Mac HOT 8
- Space disappears after being dragged HOT 9
- Could do with an @ sign as an available symbol
- Lacks exit status of previous command HOT 5
- Character and colours HOT 1
- Last command exit status HOT 3
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 halloweenbash.