Skip to main content
Bash added as well.
Source Link

Screen status bar to display current directory for zsh/bash shell

I use GNU screen a lot with zsh as my shell. It would be a nice feature (I think) to be able to display the current directory name (not the full path) as the tab title. I can do that with CTRL+A SHIFT+A but that is manual. I would like it to change whenever I change directory.

Does anyone know of a way to do this?

Edit: The answer also feature the solution for bash.

Screen status bar to display current directory for zsh shell

I use GNU screen a lot with zsh as my shell. It would be a nice feature (I think) to be able to display the current directory name (not the full path) as the tab title. I can do that with CTRL+A SHIFT+A but that is manual. I would like it to change whenever I change directory.

Does anyone know of a way to do this?

Screen status bar to display current directory for zsh/bash shell

I use GNU screen a lot with zsh as my shell. It would be a nice feature (I think) to be able to display the current directory name (not the full path) as the tab title. I can do that with CTRL+A SHIFT+A but that is manual. I would like it to change whenever I change directory.

Does anyone know of a way to do this?

Edit: The answer also feature the solution for bash.

Screen status bar displaysto display current directory for zsh shell

Tweeted twitter.com/#!/StackUnix/status/155248894832427008
Source Link

Screen status bar displays current directory

I use GNU screen a lot with zsh as my shell. It would be a nice feature (I think) to be able to display the current directory name (not the full path) as the tab title. I can do that with CTRL+A SHIFT+A but that is manual. I would like it to change whenever I change directory.

Does anyone know of a way to do this?