Skip to content

Use $HOME/bin instead of ./bin in PATH export#387

Closed
xulfm wants to merge 1 commit into
basecamp:masterfrom
xulfm:master
Closed

Use $HOME/bin instead of ./bin in PATH export#387
xulfm wants to merge 1 commit into
basecamp:masterfrom
xulfm:master

Conversation

@xulfm
Copy link
Copy Markdown

@xulfm xulfm commented Jul 28, 2025

Use $HOME/bin instead of ./bin in default PATH setup

This update changes the PATH export in default/bash/shell from:
export PATH="./bin:$HOME/.local/bin:$HOME/.local/share/omarchy/bin:$PATH"

to:
export PATH="$HOME/bin:$HOME/.local/bin:$HOME/.local/share/omarchy/bin:$PATH"

Why this matters:

I needed this change to install the Mullvad Browser

Using ./bin makes PATH resolution depend on the current working directory, which can lead to unpredictable behaviour or security concerns.

Replacing it with $HOME/bin aligns with standard Unix/Linux environment setups and ensures PATH is consistently scoped to the user’s environment, not the current directory.

This small change improves safety and reliability, especially in multi-shell or scripting environments.

@dhh
Copy link
Copy Markdown
Member

dhh commented Jul 28, 2025

This is doing something different. ./bin looks for the bin in the current directory. Usually used for app development. You're looking to add your ~/bin to path. That's fine too, if you need it, but you can just add that in your ~/.bashrc file 👌

@dhh dhh closed this Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants