On 10/23/06, Philip Ganchev <[EMAIL PROTECTED]> wrote: > Hi > > Fish seems to be reverting to the default prompt after the pager > exits. This only happens when the comand line is empty or contains > only spaces. > > > Welcome to fish, the friendly interactive shell > Type help for instructions on how to use fish > ~> functions fish_prompt > function fish_prompt --description Write\ the\ prompt > set_color $fish_color_cwd > prompt_pwd > set_color normal > set_color green > echo ">" > set_color normal > echo " " > end > > ~> <Tab> > [pager exits] > ~> <Enter> > [EMAIL PROTECTED] ~> functions fish_prompt > function fish_prompt --description Write\ out\ the\ prompt > > # Just calculate these once, to save a few cycles when displaying the > pr > ompt > if not set -q __fish_prompt_hostname > set -g __fish_prompt_hostname (hostname|cut -d . -f 1) > end > > if not set -q __fish_prompt_normal > set -g __fish_prompt_normal (set_color normal) > end > > set -l prompt_color (set_color $fish_color_cwd) > > printf '[EMAIL PROTECTED] %s%s%s> \n' $USER $__fish_prompt_hostname > "$prompt_color" > (prompt_pwd) "$__fish_prompt_normal" > end
Hi Philip, I can't reproduce these problems. Some additional questions: Is your fish_prompt function defined in ~/.config/fish/functions? What is the value of $fish_function_path on startup, and what is its value after the prompt reverts? Does this always happen, or only occasionally? Is it always the pager that causes this or have you found some other way to trigger it? Thanks for the report. > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users