Add .profiles
This commit is contained in:
parent
6fa7c01922
commit
46095f4fa0
1 changed files with 24 additions and 0 deletions
24
dotconf/profile
Normal file
24
dotconf/profile
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
function __source() {
|
||||||
|
if [ -f "$1" ]; then
|
||||||
|
source "$1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function __path() {
|
||||||
|
if [ -d "$1" ] ; then
|
||||||
|
PATH="$1:$PATH"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
|
__source "$HOME/.bashrc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
__path "$HOME/bin"
|
||||||
|
__path "$HOME/.local/bin"
|
||||||
|
__path "$HOME/.local/share/JetBrains/Toolbox/scripts"
|
||||||
|
__path "$HOME/.config/composer/vendor/bin"
|
||||||
|
__source "$HOME/.cargo/env"
|
||||||
|
|
||||||
|
unset __source
|
||||||
|
unset __path
|
Loading…
Reference in a new issue