separate user paths
This commit is contained in:
parent
9830f6d475
commit
9a3348f6a7
2 changed files with 18 additions and 1 deletions
9
bash_rc
9
bash_rc
|
@ -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
10
bashrc.d/user_bin
Normal 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
|
Loading…
Reference in a new issue