It depends on the shell you are using. I'm not sure if it is possible on all shells, but I think it is. The syntax will be different for different shells. I know it is possible on bash and tcsh.
For tcsh here is what you need to do:
alias cwdcwd 'echo -n "^[]2;$cwd ^G"'
The commands specified in alias cwdcwd will be executed everytime the value of cwd changes - that is whenever you change your directory.
Some more details are there in the tcsh man page.
Main Topics
Browse All Topics





by: monstahcowPosted on 2003-01-24 at 13:36:07ID: 7803731
It depends on the shell you are using. I'm not sure if it is possible on all shells, but I think it is. The syntax will be different for different shells. I know it is possible on bash and tcsh.
For tcsh here is what you need to do:
alias cwdcwd 'echo -n "^[]2;$cwd ^G"'
The commands specified in alias cwdcwd will be executed everytime the value of cwd changes - that is whenever you change your directory.
Some more details are there in the tcsh man page.