bashrc : place in root instead of symlink.

This commit is contained in:
Dmitry Voronin 2023-11-03 01:12:40 +03:00
parent 9dae45ccd3
commit ad1e5cc22c
2 changed files with 18 additions and 19 deletions

View file

@ -1 +0,0 @@
.linux/bash/bashrc.sh

18
.bashrc Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
#home="/var/home/voronind"
home="${HOME}"
module="${home}/.linux/bash/module/*.sh"
# src default
if [[ -f /etc/bashrc ]]; then
source /etc/bashrc
fi
# src custom
for file in ${module}; do
source "${file}"
done
# alias to reload
alias bashrc="source ~/.bashrc"

View file

@ -1,18 +0,0 @@
#!/bin/bash
#home="/var/home/voronind"
home="${HOME}"
module="${home}/.linux/bash/module/*.sh"
# src default
if [[ -f /etc/bashrc ]]; then
source /etc/bashrc
fi
# src custom
for file in ${module}; do
source "${file}"
done
# alias to reload
alias bashrc="source ~/.bashrc"