fig
fig copied to clipboard
bug: PATH contains ~/.local/bin: Path does not contain ~/.local/bin
Checks
- [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
- [X] I have run
fig doctor
in the affected terminal session - [X] I have run
fig restart
and replicated the issue again
Operating system
Ubuntu 22.04.3
Expected behaviour
$ fig doctor
✘ PATH contains ~/.local/bin: Path does not contain ~/.local/bin
✘ Doctor found errors. Please fix them and try again.
If you are not sure how to fix it, please open an issue with fig issue to let us know!
Or, email us at [email protected]!
Which is it: does PATH contain ~/.local/bin
or not? .
FYI: my PATH does not contain ~/.local/bin
.
Actual behaviour
See above
Steps to reproduce
See above
Environment
fig_cli 2.15.0
This is confusingly worded but the pattern is<check>: <result>
. So in this case, you do not have ~/.local/bin
on your PATH.
This issue has been automatically closed because there has been no activity for 14 days.
I didn't realize that a user reply was required for this issue. Why doesn't fig doctor
just add ~/.local/bin
to the PATH?
We cannot modify your PATH from fig doctor
without root permissions.
Fig attempts to do this as part of the installation process. Can you share your zshrc?
Can you share your zshrc?
I'm encountering this issue on a server running an Ubuntu 22.04.3 VM, so no .zshrc. My .bash_profile:
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/bash_profile.pre.bash" ]] && builtin source "$HOME/.fig/shell/bash_profile.pre.bash"
# Fig pre block. Keep at the top of this file.
# load .bashrc
source ~/.bashrc
# Update PATH
export PATH=${HOME}/.local/bin:$PATH
export PATH=${HOME}/bin/:$PATH
export PATH=${HOME}/bin/orad_2_6_1/:$PATH
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/nickyoungblut/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/nickyoungblut/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/nickyoungblut/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/nickyoungblut/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
if [ -f "/home/nickyoungblut/miniconda3/etc/profile.d/mamba.sh" ]; then
. "/home/nickyoungblut/miniconda3/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/bash_profile.post.bash" ]] && builtin source "$HOME/.fig/shell/bash_profile.post.bash"