quarticcat / dotfiles Goto Github PK
View Code? Open in Web Editor NEWMy dotfiles
License: MIT License
My dotfiles
License: MIT License
这两天刚好入坑XDG规范目录.
刚好在重新配置zsh.
Google到作者的blog, 谢谢分享. 干货满满~
在$HOME
, 创建.zshenv
并且配置XDG规范目录变量.
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_DATA_DIRS="/usr/local/share"
export XDG_CONFIG_DIRS="/etc/xdg"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
这与配置在/etc/zsh/zshen
或 /etc/security/pam_env.conf
有什么较大的区别吗?
某stackoverflow问答
某superuser问答
不太理解, 望指点.
看了这2个问题, 我认为是使其他程序更好的兼容用户自定义的XDG规范目录.
但是想想好像又不是.. 好像又只是单纯的全局配置例如 /etc/zsh/zshen
或 用户配置$HOME/.zshenv
的区别而已? 有点乱
对了.. 我使用的是ohmyzsh
export ZSH="$XDG_DATA_HOME/oh-my-zsh
是否更建议填写到$HOME/.zshenv
, 还是默认老样子在.zshrc
填写就行.
再次谢谢, 希望能得到回复. 😊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.