Viewing profile — nojhan
nojhan
HN member- Joined
- Thu, Jul 19, 2012, 12:52 PM UTC
- HN karma
- 183
- Public activity
- 21 items
- HN profile
- View on Hacker News ↗
About nojhan
No profile information was provided.
Recent public activity
- story
- story
- story
- story
-
comment
Comment #5853154
That's because the log was already colored (the word "fail" in red). As colout tries to color the whole line, the previous end escape character is interpreted by the terminal befor…
-
comment
Comment #5853134
You've got a too old version, update to the current one and you will see something like: [:~/code/colout/colout] parse_r+* ± colout -r x Available resources: STYLES: reverse, bold,…
-
comment
Comment #5837869
That's a bug I'm still trying to fix, but the argparse module made it somewhat difficult to find an elegant solution. An easy workaround is to indicate a fake pattern argument: col…
-
comment
Comment #5837835
You use the "zero or more" * operator, which will match empty strings in front of the "%". But an empty string cannot be converted to a float. Just use the "at least one" operator:…
-
comment
Comment #5837828
It's not really a replication, as colout just _USE_ the pygments library. Colout just add the possibility to color code that is located inside a text that should not be colored, wh…
-
comment
Comment #5834918
There is some incompatibility, like the gettext module in the g++ theme, the way themes are imported, unicode support, the print statement… But maybe it's still possible to write a…
-
comment
Comment #5834697
You can, it's just a matter of knowing how to write a function for your shell.
-
comment
Comment #5834683
It should not be too difficult to use the same config files in colout, btw.
-
comment
Comment #5833442
The `-h` switch show the help, but the `-r` show the resources loaded at startup. Alias for common use cases are named "themes" in the list of resources.
-
comment
Comment #5833425
Indeed. Having to build configuration file for each command was a pain in the ass. Colout is better integrated in my shell workflow and shows that config files are not mandatory (b…
- story
-
comment
Comment #5584477
To be honest, just because I've tried to pass this link in hackernews several times without success, with different combination of keywords/users. I was a little bit shameful at th…
-
comment
Comment #5584468
That's amusing, because I've started liquidprompt for this very specific reason: I was constantly missing the battery notification icon. Time seems to have trained my brain not to …
- story
-
comment
Comment #5582815
I've proposed a PR that do just that (maybe a little bit more readable): https://github.com/paulsm/bashtime/pull/1 Also, the code is now used in the liquid prompt: https://github.c…
- story
- story