From 19cbd14f5609c1261067cf8cce5b132beca84b96 Mon Sep 17 00:00:00 2001 From: Alessandro Miliucci Date: Tue, 14 May 2024 08:51:55 +0200 Subject: [PATCH] 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 ``` --- templates/zshrc.zsh-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 7e1c7997c..a73d60799 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -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