Aaron Gyes
3b97e2d7ec
Stop caching set_color output in rest of prompts
...
No more __fish_prompt_* variables.
2019-04-09 03:40:09 -07:00
Aaron Gyes
5f7f4c638f
informative.fish: stop caching_set_color, use br* directly
...
No longer uses global vars to cache set_color output, this was
from before set_color was a builtin, it is pointless now.
This is also a prompt from before we had bright named colors,
and it appears it was relying on -o red to get bright red.
so use brred, etc.
2019-04-09 03:13:45 -07:00
zabereer
e157ba131b
add $pipestatus
to informative.fish prompt
2019-02-28 06:37:56 +00:00
Fabian Homborg
e0f0164b16
Quote $USER when used with switch
or test
...
Common in prompts, this would fail if $USER is empty.
See #4229 .
2017-07-20 19:45:32 +02:00
Kurtis Rader
c10952c354
lint: fish_indent all sample prompts
2016-11-01 19:19:45 -07:00
Kurtis Rader
37d91d0c29
change name of the function
2016-10-23 15:02:14 -07:00
Kurtis Rader
07de13f61f
implement a fish_prompt_hostname function
...
Standardize how the host name is included in the prompts that do so.
Fixes #3480
2016-10-23 14:20:54 -07:00
David Adam
b776327b9d
Revert "prompts: more concise way of getting the hostname."
...
This reverts commit 233c443694
.
See discussion in https://github.com/fish-shell/fish-shell/pull/2489
2015-10-16 07:01:12 +08:00
Michael Fogleman
233c443694
prompts: more concise way of getting the hostname.
2015-10-15 11:59:39 +08:00
ridiculousfish
e896acffd7
Use $PWD instead of (pwd) in sample prompt
...
This improves the case where the working directory has vanished
Fixes #1857
2015-03-24 17:03:40 -07:00
Konrad Borowski
6c80a3461c
Add support for toor account.
...
Currently fish doesn't recognize toor as special. However, it's likely
that on BSD systems, fish shell will be used on toor, not on root (toor
is an intentionally existing account to use more advanced shell on, like
shell).
2014-07-30 11:55:47 +02:00
ridiculousfish
3589554028
Allow setting the prompt from web_config
2012-09-06 01:30:26 -07:00