Per#16937, while the XDG Base Directory spec is more commonly adopted, there's little I'm aware of in the way of supporting it on macOS for those users who set the environment variables. Is this something that can be added as a secondary option for that platform, or is there something...
ADDITIONAL DATA DIRECTORY (DEFAULT) $XDG_DATA_DIRS Nvim: stdpath("data_dirs") Unix: /usr/local/share /usr/local/share/nvim /usr/share /usr/share/nvim Windows: Not applicable Not applicable 2 修改Nvim的默认配置路径 根据上面的介绍,如果未指定$XDG_CONFIG_HOME这个环境变量,那么windows上默认的...
新建并编辑/etc/custom_profiles,在其中添加下面几行: #XDG directory export XDG_DATA_HOME=$HOME/.local/share export XDG_CONFIG_HOME=$HOME/.config export XDG_STATE_HOME=$HOME/.local/state export XDG_CACHE_HOME=$HOME/.cache 然后编辑/etc/profile文件,在最后添加下面一行: source /etc/custom_profile...
新建并编辑/etc/custom_profiles,在其中添加下面几行: #XDG directory export XDG_DATA_HOME=$HOME/.local/share export XDG_CONFIG_HOME=$HOME/.config export XDG_STATE_HOME=$HOME/.local/state export XDG_CACHE_HOME=$HOME/.cache 然后编辑/etc/profile文件,在最后添加下面一行: source /etc/custom_profile...
Description Fixes #558. I personally think that polluting the home directory with dotfiles is a pretty lazy and bad practice. This PR currently only addresses said problem on Linux, by making Conti...
Since all data specific to a single machine is in a single directory, you can easily avoid sharing it between systems when sharing data or backups. Easier to temporarily ignore config Not all applications have a --no-config option (especially GUI applications), and those that do have a -...
$(XDG_CONFIG_HOME)/user-dirs.dirs为用户指定当前一组目录。这个文件是shell格式的,所以很容易从shell...
The exportsxdgData,xdgConfig,xdgCache,xdgRuntimewill returnundefinedin the uncommon case that both the XDG environment variable is not set and the users home directory can't be found. You need to handle this case. A common solution is tofall back to a temporary directory. ...
" Environment set directory=$XDG_CACHE_HOME/vim,~/,/tmp set backupdir=$XDG_CACHE_HOME/vim,~/,/tmp set viminfo+=n$XDG_CACHE_HOME/vim/viminfo set runtimepath=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after,$VIM,$VIMRUNTIME let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" ...
Get the XDG Base Directory paths for Linux, or equivalent paths for Windows or MaxOS. Params options{Object} returns{Object}: Returns an object of paths for the current platform. .darwin Get XDG equivalent paths for MacOS. Used by the main export whenprocess.platformisdarwin. Aliased asxdg....