{"id":130524,"date":"2025-08-28T09:00:41","date_gmt":"2025-08-28T00:00:41","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=130524"},"modified":"2025-08-28T08:11:59","modified_gmt":"2025-08-27T23:11:59","slug":"macos-dotfiles","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/macos-dotfiles\/","title":{"rendered":"macOS\u306edotfiles\u7ba1\u7406\uff1a\u306a\u305c\u300c~\/Library\/Application Support\u300d\u306f\u907f\u3051\u308b\u3079\u304d\u304b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2025\/08\/macdotfiles.jpg\" alt=\"\" width=\"1280\" height=\"853\" class=\"aligncenter size-full wp-image-130525\" \/><\/p>\n<p>macOS\u3067CLI\u30c4\u30fc\u30eb\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb(\u901a\u79f0dotfiles)\u3092\u3069\u3053\u306b\u7f6e\u304f\u3079\u304d\u304b\u60a9\u3093\u3060\u958b\u767a\u8005\u306e\u65b9\u306f\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Rebecca\u6c0f\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u300c<a href=\"https:\/\/becca.ooo\/blog\/macos-dotfiles\/\">macOS dotfiles should not go in ~\/Library\/Application Support<\/a>\u300d\u306f\u3001\u3053\u306e\u554f\u984c\u306b\u5207\u308a\u8fbc\u307f\u3001\u591a\u304f\u306e\u30c4\u30fc\u30eb\u304c<code>~\/Library\/Application Support<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u305d\u308c\u306f\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u640d\u306a\u3044\u3001\u6280\u8853\u7684\u306b\u3082\u8aa4\u3063\u3066\u3044\u308b\u3068\u306e\u4e3b\u5f35\u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a18\u4e8b\u306b\u3088\u308b\u3068\u3001<code>~\/Library\/Application Support<\/code>\u306fGUI\u30a2\u30d7\u30ea\u5411\u3051\u306e\u30d5\u30a9\u30eb\u30c0\u3067\u3001CLI\u30c4\u30fc\u30eb\u306b\u306f\u305d\u3050\u308f\u306a\u3044\u3082\u306e\u3068\u306e\u3053\u3068\u3002\u591a\u304f\u306e\u8a00\u8a9e\u30e9\u30a4\u30d6\u30e9\u30ea(Python\u306e<code>platformdirs<\/code>\u3001JavaScript\u306e<code>env-paths<\/code>\u306a\u3069\uff09\u304cmacOS\u306e\u300c\u6a19\u6e96\u300d\u3068\u3057\u3066\u3053\u306e\u30d1\u30b9\u3092\u8fd4\u3059\u3082\u306e\u306e\u3001\u305d\u308c\u306f\u8a2d\u8a08\u4e0a\u306e\u8aa4\u89e3\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002dotfiles\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u624b\u52d5\u3067\u7ba1\u7406\u3059\u308b\u3082\u306e\u3067\u3042\u308a\u3001\u300c\u30a2\u30d7\u30ea\u304c\u81ea\u52d5\u3067\u7ba1\u7406\u3059\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300d\u3068\u306f\u6027\u8cea\u304c\u7570\u306a\u308b\u3082\u306e\u306a\u306e\u3067\u3059\u3002<\/p>\n<h2>XDG Base Directory Specification\u3092\u4f7f\u3046\u3079\u304d\u7406\u7531<\/h2>\n<p>CLI\u30c4\u30fc\u30eb\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5834\u6240\u3068\u3057\u3066\u9069\u3057\u3066\u3044\u308b\u306e\u306f\u3001XDG Base Directory Specification\u3067\u5b9a\u3081\u3089\u308c\u305f\u3001<code>~\/.config<\/code>\u3067\u3059\u3002Git\u3001Emacs\u3001Neovim\u306a\u3069\u591a\u304f\u306eUnix\u7cfb\u30c4\u30fc\u30eb\u3067\u63a1\u7528\u3055\u308c\u3044\u3066\u308b\u4e8b\u5b9f\u4e0a\u306e\u6a19\u6e96\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3057\u3084\u3059\u304f\u3001\u4e88\u6e2c\u53ef\u80fd\u306a\u69cb\u9020\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5834\u6240\u306f\u3001\u300c\u9a5a\u304d\u6700\u5c0f\u306e\u539f\u5247\uff08Principle of Least Astonishment\uff09\u300d\u306b\u5f93\u3044\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u671f\u5f85\u306b\u6cbf\u3063\u305f\u8a2d\u8a08\u304c\u671b\u307e\u3057\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4eba\u6c17\u306edotfile\u7ba1\u7406\u30c4\u30fc\u30eb\u3092\u8abf\u67fb\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7d50\u679c\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u30c4\u30fc\u30eb\u540d<\/th>\n<th>~\/Library\/Application Support<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>chezmoi<\/td>\n<td>\u5bfe\u5fdc\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>dotbot<\/td>\n<td>\u5bfe\u5fdc\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>yadm<\/td>\n<td>\u5bfe\u5fdc\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>rcm<\/td>\n<td>\u5bfe\u5fdc\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td>GNU Stow<\/td>\n<td>\u5bfe\u5fdc\u306a\u3057<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u306f\u3001macOS\u3067\u3082<code>~\/.config<\/code>\u3092\u524d\u63d0\u3068\u3057\u3066\u304a\u308a\u3001\u73fe\u5834\u306e\u904b\u7528\u304cApple\u306eGUI\u5411\u3051\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u3068\u306f\u7570\u306a\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Apple\u306e\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u306e\u8aa4\u89e3<\/h2>\n<p>macOS\u3067\u3053\u306e\u3088\u3046\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306f\u3001Apple\u306e\u300cStandard Directories\u300d\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u306e\u8aa4\u89e3\u306b\u3042\u308b\u3068\u306e\u3053\u3068\u3002\u3053\u308c\u306fGUI\u30a2\u30d7\u30ea\u5411\u3051\u3067\u3001CLI\u30c4\u30fc\u30eb\u306b\u306f\u9069\u7528\u3055\u308c\u306a\u3044\u3082\u306e\u3060\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>CLI\u30c4\u30fc\u30eb\u306f\u30d0\u30f3\u30c9\u30ebID\u3092\u6301\u305f\u305a\u3001<code>\/Applications<\/code>\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3053\u3068\u3082\u306a\u3044\u305f\u3081\u3001<code>~\/Library\/Application Support<\/code>\u3092\u4f7f\u3046\u6839\u62e0\u306b\u306f\u306a\u3089\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6\uff1aCLI\u30c4\u30fc\u30eb\u306fXDG\u4ed5\u69d8\u306b\u5f93\u3046\u3079\u304d<\/h2>\n<p>Rebecca\u6c0f\u306e\u4e3b\u5f35\u306f\u660e\u5feb\u3067\u3059\u3002macOS\u3067\u3082CLI\u30c4\u30fc\u30eb\u306f<code>~\/.config<\/code>\u3092\u4f7f\u3046\u3079\u304d\u3067\u3042\u308a\u3001<code>~\/Library\/Application Support\u306f<\/code>GUI\u30a2\u30d7\u30ea\u5c02\u7528\u306e\u9818\u57df\u3060\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u671f\u5f85\u3001\u30c4\u30fc\u30eb\u306e\u4e00\u8cab\u6027\u3001\u305d\u3057\u3066\u4fdd\u5b88\u6027\u3092\u8003\u3048\u308b\u306a\u3089\u3001XDG Base Directory Specification\u306e\u63a1\u7528\u304c\u6700\u3082\u5408\u7406\u7684\u306a\u9078\u629e\u3060\u3068\u5f37\u8abf\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<a href=\"https:\/\/news.ycombinator.com\/item?id=45022383\">Hacker News<\/a>\u3067\u3082\u3053\u306e\u8a18\u4e8b\u304c\u8b70\u8ad6\u3055\u308c\u3066\u3044\u3066\u3001\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u3001CLI\u30c4\u30fc\u30eb\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5148\u3092\u30e9\u30a4\u30d6\u30e9\u30ea\uff08\u4f8b\uff1aRust\u306edirs crate\uff09\u306b\u59d4\u306d\u3066\u3044\u308b\u305f\u3081\u3001\u305d\u306e\u7d50\u679c\u3068\u3057\u3066<code>~\/Library\/Application Support<\/code>\u304c\u4f7f\u308f\u308c\u3066\u3057\u307e\u3046\u3068\u8a34\u3048\u3066\u3044\u307e\u3059\u3002\u4e00\u90e8\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30e1\u30f3\u30c6\u30ca\u30fc\u306b\u6539\u5584\u3092\u6c42\u3081\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u53d7\u3051\u5165\u308c\u3089\u308c\u3066\u3044\u306a\u3044\u3068\u3044\u3046\u4e0d\u6e80\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u591a\u304f\u306e\u30b3\u30e1\u30f3\u30c8\u306f\u3001XDG Base Directory Specification\uff08\u7279\u306b<code>~\/.config<\/code>\uff09\u306e\u63a1\u7528\u3092\u652f\u6301\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4e00\u65b9\u3067\u3001XDG\u4ed5\u69d8\u306e\u66d6\u6627\u3055\u3084\u5185\u90e8\u77db\u76fe\uff08\u7279\u306b<code>$XDG_CONFIG_HOME<\/code>\u3068$<code>XDG_DATA_HOME<\/code>\u306e\u4f7f\u3044\u5206\u3051\uff09\u306b\u8a00\u53ca\u3059\u308b\u58f0\u3082\u3042\u308a\u3001\u4ed5\u69d8\u306e\u660e\u78ba\u5316\u3092\u6c42\u3081\u308b\u610f\u898b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>macOS\u3067CLI\u30c4\u30fc\u30eb\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb(\u901a\u79f0dotfiles)\u3092\u3069\u3053\u306b\u7f6e\u304f\u3079\u304d\u304b\u60a9\u3093\u3060\u958b\u767a\u8005\u306e\u65b9\u306f\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 Rebecca\u6c0f\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u300cmacOS dotfiles should not go in ~\/L [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":130525,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[1974,4831],"class_list":["post-130524","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-hacker-news","tag-macosi"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/130524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=130524"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/130524\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/130525"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=130524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=130524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=130524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}