git.fiddlerwoaroof.com
Browse code

On a mac, browse user's homedir web files correctly

Ed Langley authored on 13/04/2019 20:42:50
Showing 1 changed files
... ...
@@ -400,6 +400,9 @@ With a prefix ARG invalidates the cache first."
400 400
        (car (push (cons id (read-passwd prompt))
401 401
                   passwords))))))
402 402
 
403
+(add-to-list 'browse-url-filename-alist
404
+             '("/Users/\\([^/]+\\)/\\(Sites\\|public_html\\)\\(/.*\\)" . "https://localhost/~\\1\\3"))
405
+
403 406
 ;;;;; junk drawer ....
404 407
 
405 408
 (comment