{"id":18839106,"url":"https://github.com/solareenlo/bashrc","last_synced_at":"2026-01-28T18:30:14.484Z","repository":{"id":93865713,"uuid":"167577423","full_name":"solareenlo/bashrc","owner":"solareenlo","description":"Ubuntu18.04のカスタム.bashrc","archived":false,"fork":false,"pushed_at":"2019-08-05T05:21:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T09:15:43.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/solareenlo.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}},"created_at":"2019-01-25T16:24:40.000Z","updated_at":"2019-08-05T05:21:13.000Z","dependencies_parsed_at":"2023-04-29T18:20:06.299Z","dependency_job_id":null,"html_url":"https://github.com/solareenlo/bashrc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solareenlo%2Fbashrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solareenlo%2Fbashrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solareenlo%2Fbashrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solareenlo%2Fbashrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solareenlo","download_url":"https://codeload.github.com/solareenlo/bashrc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774334,"owners_count":19694700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-08T02:41:53.732Z","updated_at":"2026-01-28T18:30:14.424Z","avatar_url":"https://github.com/solareenlo.png","language":"Shell","readme":"# bashrc\nubntu18.04の.bashrcの追加要素\n\n## Usage\n### まずgit-completion.bashとgit-prompt.shをインストールする\n```bash\nwget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -O ~/.git-completion.bash\nchmod a+x ~/.git-completion.bash\nwget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -O ~/.git-prompt.sh\nchmod a+x ~/.git-prompt.sh\n```\n\n### .bashrcに以下を追加する\n- 以下は当該部分を置き換える.\n```bash\n# \\u ユーザ名\n# \\h ホスト名\n# \\W カレントディレクトリ\n# \\w カレントディレクトリのパス\n# \\n 改行\n# \\d 日付\n# \\[ 表示させない文字列の開始\n# \\] 表示させない文字列の終了\n# \\$ $\n\nif [ \"$color_prompt\" = yes ]; then\n    PS1='${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\[\\033[01;31m\\]$(__git_ps1)\\[\\033[00m\\]\\n\\[\\033[01;35m\\]-\u003e \\$\\[\\033[00m\\] '\nelse\n    PS1='${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ '\nfi\nunset color_prompt force_color_prompt\n```\n- 以下は追加する.\n```bash\n# gitに色を付ける\nsource ~/.git-completion.bash\nsource ~/.git-prompt.sh\nGIT_PS1_SHOWDIRTYSTATE=true\nGIT_PS1_SHOWSTASHSTATE=true\nGIT_PS1_SHOWUNTRACKEDFILES=true\nGIT_PS1_SHOWUPSTREAM=\"auto\"\nGIT_PS1_SHOWCOLORHINTS=true\n```\n\n## Reference\n- [「Git補完をしらない」「git statusを1日100回は使う」そんなあなたに朗報【git-completionとgit-prompt】](https://qiita.com/varmil/items/9b0aeafa85975474e9b6)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolareenlo%2Fbashrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolareenlo%2Fbashrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolareenlo%2Fbashrc/lists"}