bashrc : place in root instead of symlink.
This commit is contained in:
parent
9dae45ccd3
commit
ad1e5cc22c
18
.bashrc
Executable file
18
.bashrc
Executable 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"
|
|
@ -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"
|
Reference in a new issue