home ( -- dir )
Factor documentation > Factor handbook > Input and output > Directory manipulation
Next:Current working directory


Vocabulary
io.pathnames

Inputs and outputs
dira string


Word description
Outputs the user's home directory.

Examples
USING: io.pathnames prettyprint ; home .
"/home/factor-user"


Definition
USING: io.backend ;

IN: io.pathnames

HOOK: home io-backend ( -- dir )


Methods
USING: io.pathnames kernel ;

M: object home "" resource-path ;


USING: environment io.pathnames system ;

M: unix home "HOME" os-env ;