Here, this is what I have.

fn setprompt {
        # delete old function
        fn $ps1
        PWD=`{pwd}
        ps1='['^$sysname^':'^`{basename $PWD}^']%'
        prompt=($ps1^' ' '      ')
        fn $ps1 { if(! ~ $#* 0) $* }

        # macOS Terminal Title
        printf '\033]7;%s\007'  file://^`{hostname}^$PWD
}

fn cd {
        builtin cd $* &&
        setprompt
}



> On Jan 23, 2019, at 7:32 PM, Federico Benavento <benave...@gmail.com> wrote:
> 
> Yes, you can, I think I even set the title of the terminal window when I cd. 
> I’m not at home now, i’ll post my rcrc once I get a chance.
> 
>> On 23 Jan 2019, at 19:11, Calvin Morrison <mutanttur...@gmail.com> wrote:
>> 
>> feature i would ove: something equiv to a PS1 line so i know what
>> folder i'm in. Can I do that with $prompt?

—-
Federico G. Benavento
benave...@gmail.com





Reply via email to