mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
fix(zshrc): add ~/.local/bin/ to PATH as required by systemd
The vast majority of modern Linux distributions are systemd based. User specific binaries can be placed inside `~/.local/bin/` ([SPEC](https://www.freedesktop.org/software/systemd/man/latest/file-hierarchy.html#~/.local/bin/)). For this reason, .bashrc already adds that location to PATH. E.g. (from a Fedora 40 brand new installation) ``` # User specific environment if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then PATH="$HOME/.local/bin:$HOME/bin:$PATH" fi export PATH ```
This commit is contained in:
parent
b1c5315a5f
commit
19cbd14f56
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue