Idea of *.rc files
There is neccessary to import only one file from $HOME/.bashrc $WORKDIR/bashrc
This commit is contained in:
6
bashrc
Normal file
6
bashrc
Normal 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
0
rc/aliases.rc
Normal file
4
rc/git-prompt.rc
Executable file
4
rc/git-prompt.rc
Executable 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
|
||||
Reference in New Issue
Block a user