Answer the question
In order to leave comments, you need to log in
How to add /home/bin to PATH using zsh?
On Ubuntu it works by itself, you just need to create the bin folder.
On Debian, I added this to No
effect.
Also, I noticed there in the same place it was the default.profile
export PATH=$PATH:~/bin
.profile
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
Answer the question
In order to leave comments, you need to log in
I have this in .profile , everything works
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question