Idea of *.rc files

There is neccessary to import only one file from $HOME/.bashrc
$WORKDIR/bashrc
This commit is contained in:
Martin Blazik
2020-09-10 20:19:20 +02:00
parent 63d4fee93a
commit da85876264
4 changed files with 10 additions and 0 deletions

6
bashrc Normal file
View File

@@ -0,0 +1,6 @@
WORKSPACE=$(dirname "$0")
for rc_file in $WORKSPACE/rc/*.rc; do
echo "source $rc_file"
done

0
rc/aliases.rc Normal file
View File

View File

4
rc/git-prompt.rc Executable file
View File

@@ -0,0 +1,4 @@
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
GIT_PROMPT_ONLY_IN_REPO=1
source $HOME/.bash-git-prompt/gitprompt.sh
fi