Trying to find some example code using getpwd but it seems to be a command lesser used...
I'm well aware that the command could be used with a bind - <command>...
but could it be used in some other way? Say... If i wanted a script to do something when a user enters a certain directory....
I guess you'd have to replace or piggyback one or more of the FIL bindings and test whether the user is currently in, or heading to, that special directory. You might be able to use the FILT binding for piggybacking, but I havn't tried that myself.