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
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users