zabereer
ead26881f0
create __fish_print_pipestatus function to reduce code duplication in other prompts when adding $pipestatus
2019-02-28 06:19:28 +00:00
zabereer
8ebbe67ff1
Use string match
instead of for
loop to simplify classic_status.fish
2019-02-27 06:11:03 +00:00
zabereer
378b5d7295
update classic_status.fish prompt to include $pipestatus
2019-02-26 18:27:59 +00:00
Fabian Homborg
bcfef9268d
sample_prompts/classic_status: Clean
...
- Remove unused variable
- Use `test` instead of `[ ]`
2018-11-29 16:35:52 +01: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
Kevin Ballard
3f11d90744
# This is a combination of 2 commits.
...
# The first commit's message is:
Simplify default fish_prompt
No need for the set_color caching now that it's a builtin.
Also simplify the 3 classic prompts in fish_config's sample_prompts set.
2014-10-02 18:41:01 -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