{"id":23639835,"url":"https://github.com/yammerjp/dotfiles-getting-started-sample","last_synced_at":"2026-05-04T13:31:53.634Z","repository":{"id":110472984,"uuid":"480199475","full_name":"yammerjp/dotfiles-getting-started-sample","owner":"yammerjp","description":"Software Design 2022年6月号 第1特集 Appendix dotfilesのススメ のサンプルリポジトリ","archived":false,"fork":false,"pushed_at":"2022-05-17T23:23:06.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T09:49:16.992Z","etag":null,"topics":["dotfiles","shell"],"latest_commit_sha":null,"homepage":"https://gihyo.jp/magazine/SD/archive/2022/202206","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yammerjp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-11T02:25:57.000Z","updated_at":"2022-05-17T23:25:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"09c9dbc9-030f-488b-9dc2-ccce17ce58b2","html_url":"https://github.com/yammerjp/dotfiles-getting-started-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yammerjp/dotfiles-getting-started-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Fdotfiles-getting-started-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Fdotfiles-getting-started-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Fdotfiles-getting-started-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Fdotfiles-getting-started-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yammerjp","download_url":"https://codeload.github.com/yammerjp/dotfiles-getting-started-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Fdotfiles-getting-started-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32609446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotfiles","shell"],"created_at":"2024-12-28T08:19:28.200Z","updated_at":"2026-05-04T13:31:53.628Z","avatar_url":"https://github.com/yammerjp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotfiles\n\n.bashrcを管理するdotfilesのリポジトリです。\n\n## Setup\n\nbashとGitがインストールされた環境で以下を実行します。\n\n    git clone git@github.com:yammerjp/dotfiles-getting-started-sample.git ~/dotfiles\n    ~/dotfiles/setup.sh\n    source ~/.bashrc\n\n## Description\n\nこのリポジトリはSoftware Design 2022年6月号 第1特集 シェルの基本大全 Appendix dotfilesのススメ どこでもサクッと自分好みの設定を適用しよう！で作成するdotfilesのサンプルリポジトリです。\n\n### 本文中のURL\n\n記事本文中に記載した注釈のURLを以下に示します。\n\n- 注1: [Dotfiles · the missing semester of your cs education](https://missing.csail.mit.edu/2019/dotfiles/#organization)\n- 注3: [yammerjp/dotfiles: my .vimrc, .zshrc, and so on...](https://github.com/yammerjp/dotfiles)\n- 注4: [dotfiles · GitHub Topics](https://github.com/topics/dotfiles)\n- 注6: [秘匿情報を含む.bashrcを分割する - memo.yammer.jp](https://memo.yammer.jp/posts/devide-bashrc)\n- 注8: [chezmoi - chezmoi](https://www.chezmoi.io/)\n- 注9: [Yet Another Dotfiles Manager - yadm](https://yadm.io/)\n- 注10: [複数の環境に適応する、階層構造のdotfiles - memo.yammer.jp](https://memo.yammer.jp/posts/layered-dotfiles)\n\n### プロンプトのカスタマイズ\n\n#### bash\n\nbashのプロンプトのカスタマイズに関しては、マニュアルが参考になります\n\n[Bash Reference Manual](https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Controlling-the-Prompt)\n\n#### zsh\n\n本文ではbashを題材に扱っています。\nzshで同様のことを実現する場合には、プロンプトのカスタマイズ方法が異なります。\n\nzshで、実行ユーザ名、実行ホスト名、現在時刻を表示するには以下のコマンドを実行します。\n\n```zsh\necho 'PROMPT=\"%n@%m %* %~ \\$ \"' \u003e\u003e ~/.zshrc\nsource ~/.zshrc\n```\n\nzshでは、シェル変数`PROMPT`に文字列を指定することで、zshが入力を受け付ける際に画面に出力する文字列を指定できます。\nシェル変数に渡した文字列の中で、特別に解釈されて置換されるものは以下のとおりです。\n\n- `%n` ... 実行ユーザ名\n- `%m` ... 実行ホスト名\n- `%*` ... 現在時刻 (HH:MM:SS)\n- `%~` ... カレントディレクトリ\n\nref: [zsh: 13 Prompt Expansion](https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html)\n\nこのように、bashのシェル変数`PS1`で実現できることとほぼ同様のことがzshの`PROMPT`で実現できます。\n\n## LICENSE\n\nMIT License\n\nCopyright (c) 2022 Keisuke Nakayama\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Author\n\nKeisuke, Nakayama ([@yammerjp](https://github.com/yammerjp))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyammerjp%2Fdotfiles-getting-started-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyammerjp%2Fdotfiles-getting-started-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyammerjp%2Fdotfiles-getting-started-sample/lists"}