You are not logged in.

#1 2016-11-12 21:07:08

LonelyPyxel
Member
Registered: 2016-06-17
Posts: 9

Fish displaying a [I] before my prompt

Yesterday, I installed the fish shell.
It was working fine until I booted into my system today to find a large

[I]

before my prompt

my fish config:

[I] /home/pyxel > cat .config/fish/config.fish 
function fish_prompt
	echo (pwd) "> "
end

Fish version:

[I] /home/pyxel > fish -v
fish, version 2.3.1

I haven't install anything like oh-my-fish.

It happens with all of the terminal emulators I have used.

Any help would be appreciated.

Mod note: removed large image. Please see the CoC regarding acceptable image sizes -- WorMzy

Last edited by LonelyPyxel (2016-11-12 22:27:09)

Offline

#2 2016-11-12 21:16:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Fish displaying a [I] before my prompt

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code

Do you get this in other shells, or just fish?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-11-13 00:19:59

LonelyPyxel
Member
Registered: 2016-06-17
Posts: 9

Re: Fish displaying a [I] before my prompt

jasonwryan wrote:

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code

Do you get this in other shells, or just fish?

This only happens in fish. I tested bash, zsh, and sh, and they all looked fine.

Offline

#4 2016-11-13 02:32:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Fish displaying a [I] before my prompt

Look through the initialisation files: http://fishshell.com/docs/current/index … ialization

If that fails, use `fish_config` to reset the prompt and see if that fixes it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-11-13 08:01:12

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,274

Re: Fish displaying a [I] before my prompt

tested whether "echo (pwd)" produces that in fish? What about just "pwd"? "echo (echo foo)"?

Offline

#6 2016-11-17 04:01:30

LonelyPyxel
Member
Registered: 2016-06-17
Posts: 9

Re: Fish displaying a [I] before my prompt

Sorry for the late response.

seth wrote:

tested whether "echo (pwd)" produces that in fish? What about just "pwd"? "echo (echo foo)"?

[I] /home/pyxel > echo (pwd)
/home/pyxel
[I] /home/pyxel > pwd
/home/pyxel
[I] /home/pyxel > echo (echo foo)
foo
jasonwryan wrote:

Look through the initialisation files: http://fishshell.com/docs/current/index … ialization

If that fails, use `fish_config` to reset the prompt and see if that fixes it.

My initialisation files seem to be fine..
https://ghostbin.com/paste/n7t5p
https://ghostbin.com/paste/nkusc
Resetting my prompt with fish_shell did not fix the issue.


On another note the output of fish_prompt is

[I] /home/pyxel > fish_prompt 
/home/pyxel > 

Offline

#7 2016-11-17 04:06:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Fish displaying a [I] before my prompt

Try running it without all that complexity: either start from scratch or remove half the file and see if the behaviour is present, if it is, bisect again...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2016-11-18 01:18:16

LonelyPyxel
Member
Registered: 2016-06-17
Posts: 9

Re: Fish displaying a [I] before my prompt

jasonwryan wrote:

Try running it without all that complexity: either start from scratch or remove half the file and see if the behaviour is present, if it is, bisect again...

Those are the stock  fish initialisation files. I haven't edited them.

Reinstalling fish also has not fixed this issue.

Edit 2: changing my prompt doesn't help

[I] /home/pyxel > function fish_prompt
                      echo ">"
                  end
[I] > 

Last edited by LonelyPyxel (2016-11-18 01:24:29)

Offline

#9 2016-11-18 07:46:16

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,274

Re: Fish displaying a [I] before my prompt

anything interesting in ~/.config/fish/fishd.`hostname` ?

Offline

#10 2016-11-19 14:49:20

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 125

Re: Fish displaying a [I] before my prompt

#LonleyPyxel

Have you tried running "fish_config" from an open fish terminal and choosing a prompt from the samples given when the web browser opens the page. Then setting it from the webpage.
This has worked for me.

Last edited by NoSavvy (2016-11-19 14:50:41)

Offline

Board footer

Powered by FluxBB