ahefner ([info]ahefner) wrote,
@ 2008-07-09 17:58:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:lisp

user-homedir-pathname

CL-USER> (defun ~ (name) (merge-pathnames name (user-homedir-pathname)))
~
CL-USER> (~ "foo")
#P"/home/hefner/foo"
CL-USER> (~"cl/foo/myhack.lisp")
#P"/home/hefner/cl/foo/myhack.lisp"
CL-USER> 


Not as nice as Zach Beane's approach, of course.



Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…