add __fish_urlencode function which URL-escapes stdin
Notify vte-based terminals of $PWD change (#906)