fig icon indicating copy to clipboard operation
fig copied to clipboard

bug: PATH contains ~/.local/bin: Path does not contain ~/.local/bin

Open nick-youngblut opened this issue 8 months ago • 5 comments

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

nick-youngblut avatar Oct 20 '23 17:10 nick-youngblut

This is confusingly worded but the pattern is<check>: <result>. So in this case, you do not have ~/.local/bin on your PATH.

mschrage avatar Oct 26 '23 19:10 mschrage

This issue has been automatically closed because there has been no activity for 14 days.

github-actions[bot] avatar Nov 09 '23 20:11 github-actions[bot]

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?

nick-youngblut avatar Nov 10 '23 03:11 nick-youngblut

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?

mschrage avatar Dec 05 '23 22:12 mschrage

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"

nick-youngblut avatar Dec 06 '23 16:12 nick-youngblut