# Add this to your lib/profile to get a smart rc command prompt
# that reflects your current username, host, and working directory.
# E.g.
# : lyndon@frodo:/usr/lyndon;
# The prompt string is a no-op and can be passed harmessly back
# to rc should you want to send several lines of snarfed text
# back into the window.
fn : {}
fn setprompt {
prompt = (': '^`{cat /dev/user}^@^`{cat /dev/sysname}^':'^`{pwd}^'; ' ' ')
}
fn cd { builtin cd $* && setprompt }
setprompt
|