def cwd_filt(depth):
cwd = os.getcwdu().replace(HOME,"<STR_LIT>")<EOL>out = os.sep.join(cwd.split(os.sep)[-depth:])<EOL>return out or os.sep<EOL>
Return the last depth elements of the current working directory.

    $HOME is always replaced with '~'.
    If depth==0, the full path is returned.