New answers tagged rxvt
Of course it is a working approach to modify cd's behavior, but I would like to show a more simple solution. In the man bash(1) I found that if an interactive bash exits it runs ~/.bash_logout if exists. So instead of storing the path at every invocation of cd the last path can be saved at exit. My ~/.bash_logout is very simple: echo $PWD >~/.lastdir ...
Top 50 recent answers are included