How about a fish_short_prompt function in addition to fish_prompt, then users could choose what to display (I'm assuming they can't at the moment).
On 22/07/2013 04:36, David Adam wrote: > On Sun, 21 Jul 2013, Josh Cheek wrote: >> When my terminal is too narrow to display my full prompt, fish switches >> over to a shorter prompt ">" >> >> I can't find docs on how to customize this short prompt. >> >> I don't know CPP, so it's difficult for me to go into the code to see, but >> acking through the project, it looks like it's here >> https://github.com/fish-shell/fish-shell/blob/f9c2a77c67754324f3036ec79501c6131d19562b/screen.cpp#L1076-1095 >> >> I basically always have multiple panes in my terminal, so it's not uncommon >> for my prompt to get shortened, but I'd still like to have some of the >> prompt information available, otherwise I feel lost :( >> >> Is there a way for me to customize this? Or should I edit the source and >> compile myself or something? (I'm hesitant to do this, pretty sure I could >> get it changed and compiled if I spent a few hours, but I have no idea >> what's involved with installing it) > This is coming up a bit, and something that has been suggested a few times > (see https://github.com/fish-shell/fish-shell/issues/904 for the most > recent) is dynamically adapting your prompt based on the width of the > window. > > You could try inspecting the $COLUMNS variable and outputting a different > set of variables in the case that the prompt is too long. > > It would be nice to have a working example of this either in the FAQ or > the example prompts; does anyone have one? > > David Adam > fish committer > [email protected] > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Fish-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fish-users ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
