installer script doesn't check if ~/.local/bin is in $PATH #202

Closed
opened 2021-10-13 15:04:11 +00:00 by knoflook · 4 comments
Owner

Describe the problem

~/.local/bin might not be in $PATH

Provide the exact sequence of commands / steps that you executed before running into the problem

use the installer script and don't set your $PATH to have ~/.local/bin in it

Additional information

  • OS: any i guess

get the value of $PATH, then $SHELL and then depending on whether $SHELL is bash/zsh/fizsh/ksh/tcsh/csh/ash/fish/your favourite obscure shell add PATH=$PATH:$HOME/.local/bin to .bashrc, .zshrc, .fizsh/.fizshrc etc. Or to .profile.
Actually should we use .profile or .(shell)rc for that?

## Describe the problem ~/.local/bin might not be in $PATH ## Provide the exact sequence of commands / steps that you executed before running into the problem use the installer script and don't set your $PATH to have ~/.local/bin in it ## Additional information - OS: any i guess get the value of $PATH, then $SHELL and then depending on whether $SHELL is bash/zsh/fizsh/ksh/tcsh/csh/ash/fish/your favourite obscure shell add PATH=$PATH:$HOME/.local/bin to .bashrc, .zshrc, .fizsh/.fizshrc etc. Or to .profile. Actually should we use .profile or .(shell)rc for that?
knoflook added the
bug
question
installer
labels 2021-10-13 15:04:13 +00:00
Owner

Solving this sounds good to me!

Solving this sounds good to me!

shellrc is where that should be made but I don't think its a good idea to change it for the user as thats a personal config choice. Think the best action would be a massive warning if its not in $PATH and advise on adding it to shellrc or where ever is decided.

shellrc is where that should be made but I don't think its a good idea to change it for the user as thats a personal config choice. Think the best action would be a massive warning if its not in $PATH and advise on adding it to shellrc or where ever is decided.
Owner

Think the best action would be a massive warning if its not in $PATH and advise on adding it to shellrc or where ever is decided.

Yep this seems like the move.

> Think the best action would be a massive warning if its not in $PATH and advise on adding it to shellrc or where ever is decided. Yep this seems like the move.
Author
Owner
closed in https://git.coopcloud.tech/coop-cloud/abra/pulls/117
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#202
No description provided.