Skip to main content
added 44 characters in body
Source Link

In my .profile I have PATH="$HOME/.local/lib:$HOME/.local/bin:$HOME/.node_modules/bin:$HOME/.cargo/bin:$HOME/local/bin:/usr/bin:$PATH" In my .zshrc I have miniconda path stuff (export PATH="/home/user/miniconda3/bin:$PATH") but I removed that and it seems its the last that gets loaded and so I don't think thats the issue. However, in my shell, I get the following

/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin

Maybe some arch packages set these paths? But what's setting sbin in my path? I'm not root. 

Also my PATH command from .profile is not being picked up, I've tried it with and without export. I'm pretty sure it used to work. (EDIT: seems zsh only sources .zprofile)

In my .profile I have PATH="$HOME/.local/lib:$HOME/.local/bin:$HOME/.node_modules/bin:$HOME/.cargo/bin:$HOME/local/bin:/usr/bin:$PATH" In my .zshrc I have miniconda path stuff (export PATH="/home/user/miniconda3/bin:$PATH") but I removed that and it seems its the last that gets loaded and so I don't think thats the issue. However, in my shell, I get the following

/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin

Maybe some arch packages set these paths? But what's setting sbin in my path? I'm not root. Also my PATH command from .profile is not being picked up, I've tried it with and without export. I'm pretty sure it used to work.

In my .profile I have PATH="$HOME/.local/lib:$HOME/.local/bin:$HOME/.node_modules/bin:$HOME/.cargo/bin:$HOME/local/bin:/usr/bin:$PATH" In my .zshrc I have miniconda path stuff (export PATH="/home/user/miniconda3/bin:$PATH") but I removed that and it seems its the last that gets loaded and so I don't think thats the issue. However, in my shell, I get the following

/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin

Maybe some arch packages set these paths? But what's setting sbin in my path? I'm not root. 

Also my PATH command from .profile is not being picked up, I've tried it with and without export. I'm pretty sure it used to work. (EDIT: seems zsh only sources .zprofile)

Source Link

Ideas for why PATH has these directories

In my .profile I have PATH="$HOME/.local/lib:$HOME/.local/bin:$HOME/.node_modules/bin:$HOME/.cargo/bin:$HOME/local/bin:/usr/bin:$PATH" In my .zshrc I have miniconda path stuff (export PATH="/home/user/miniconda3/bin:$PATH") but I removed that and it seems its the last that gets loaded and so I don't think thats the issue. However, in my shell, I get the following

/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin

Maybe some arch packages set these paths? But what's setting sbin in my path? I'm not root. Also my PATH command from .profile is not being picked up, I've tried it with and without export. I'm pretty sure it used to work.