Title: installation prompts for modification of .bashrc which is wrong · Issue #2001 · github/copilot-cli · GitHub
Open Graph Title: installation prompts for modification of .bashrc which is wrong · Issue #2001 · github/copilot-cli
X Title: installation prompts for modification of .bashrc which is wrong · Issue #2001 · github/copilot-cli
Description: Describe the bug I'll let Copilot speak for itself: ❯ The instructions for a piece of software include this: Notice: /home/staff/gback/.local/bin is not in your PATH Would you like to add it to /home/staff/gback/.bashrc? [y/N] N Do you b...
Open Graph Description: Describe the bug I'll let Copilot speak for itself: ❯ The instructions for a piece of software include this: Notice: /home/staff/gback/.local/bin is not in your PATH Would you like to add it to /ho...
X Description: Describe the bug I'll let Copilot speak for itself: ❯ The instructions for a piece of software include this: Notice: /home/staff/gback/.local/bin is not in your PATH Would you like to add it to...
Opengraph URL: https://github.com/github/copilot-cli/issues/2001
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"installation prompts for modification of .bashrc which is wrong","articleBody":"### Describe the bug\n\nI'll let Copilot speak for itself:\n\n```\n❯ The instructions for a piece of software include this:\n Notice: /home/staff/gback/.local/bin is not in your PATH\n\n Would you like to add it to /home/staff/gback/.bashrc? [y/N] N\n\n Do you believe that .bashrc is the correct place for adding this?\n If not, where should it be added?\n\n◐ The user's question doesn't seem to require a specific tool, so I think I can answer based on general \n knowledge. For login shells, the PATH variable should typically be set in /.profile or /.bash_profile. \n But, if you’re using an interactive non-login shell, .bashrc is the right place. It’s important to note \n that for many distributions, .profile might source .bashrc, depending on the setup. If users follow \n generic installer instructions, they might need to check their specific configurations.\n\n● Usually no — ~/.bashrc is not the best default place for PATH.\n\n PATH is an environment setting, so it normally belongs in a login-shell startup file such as:\n\n - ~/.profile\n - or ~/.bash_profile / ~/.bash_login on Bash setups that use those\n\n Why: ~/.bashrc is mainly for interactive Bash-only settings like aliases and prompts. If you put PATH only\n there, login shells, scripts, GUI-launched apps, or other shells may not see it.\n\n Good rule:\n\n - Put export PATH=\"$HOME/.local/bin:$PATH\" in ~/.profile\n - If needed, have ~/.bashrc only for interactive shell customizations\n\n ~/ [⎇ master] \n```\n\n### Affected version\n\nGitHub Copilot CLI 1.0.4.\n\n### Steps to reproduce the behavior\n\n1. Try to install copilot\n2. See the wrong suggestion\n\n### Expected behavior\n\nIt should add it to ~/.profile or ~/.bash_profile.\nAdding it to ~/.bashrc will result in repeated entries.\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/godmar","@type":"Person","name":"godmar"},"datePublished":"2026-03-12T16:30:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2001/copilot-cli/issues/2001"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2d763248-7ae3-1607-53f3-b4543a3060a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B332:8F52B:55C78E3:78F041B:6A4FB346 |
| html-safe-nonce | 53820aff89780775a0da90775864c827157dc706559f38333d1dfb9791ed864f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzMyOjhGNTJCOjU1Qzc4RTM6NzhGMDQxQjo2QTRGQjM0NiIsInZpc2l0b3JfaWQiOiI4NTkyMzcyNzgyMjkzMDM3ODk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e1fba905136fe6ce66bd12175cc79c24c6a954bcb06ea64231ebab2ed1a4ef1a |
| hovercard-subject-tag | issue:4065847809 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/copilot-cli/2001/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03916941ae8e8ba7a01f5e02f6f23ad0909a83d7f97207ff3b23d747abe91b84/github/copilot-cli/issues/2001 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03916941ae8e8ba7a01f5e02f6f23ad0909a83d7f97207ff3b23d747abe91b84/github/copilot-cli/issues/2001 |
| og:image:alt | Describe the bug I'll let Copilot speak for itself: ❯ The instructions for a piece of software include this: Notice: /home/staff/gback/.local/bin is not in your PATH Would you like to add it to /ho... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | godmar |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/copilot-cli git https://github.com/github/copilot-cli.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 585860664 |
| octolytics-dimension-repository_nwo | github/copilot-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 585860664 |
| octolytics-dimension-repository_network_root_nwo | github/copilot-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width