sjl / z-fish

A fork of http://github.com/rupa/z to port it to the Fish shell.
134 stars 30 forks source link

Support $XDG_DATA_HOME env variable for user-specific data #9

Open ncoif opened 5 years ago

ncoif commented 5 years ago

XDG Base Directory specification is a set of specifications for linux desktop application to save data to standard places.

This commit attempt to use $XDG_DATA_HOME if present, or else fallback to using the current $HOME directory.