separate user paths

This commit is contained in:
Antonio J. Delgado 2022-05-07 12:21:08 +03:00
parent 9830f6d475
commit 9a3348f6a7
2 changed files with 18 additions and 1 deletions

View file

@ -16,7 +16,14 @@ fi
# Uncomment the following line if you don't like systemctl's auto-paging feature: # Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER= # export SYSTEMD_PAGER=
export PATH="${PATH}:${HOME}/bin:/usr/local/bin:/usr/local/sbin" # Local bin folders in path
if [ -d /usr/local/bin ]; then
export PATH="${PATH}:/usr/local/bin"
fi
if [ -d /usr/local/sbin ]; then
export PATH="${PATH}:/usr/local/sbin"
fi
# check the window size after each command and, if necessary, # check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS. # update the values of LINES and COLUMNS.

10
bashrc.d/user_bin Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi