splitting into more modular structure
This commit is contained in:
11
bash.d/10-prompt.sh
Normal file
11
bash.d/10-prompt.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROMPT_SUBMODULE="${SUBMODULES}/romkatv-gitstatus"
|
||||
|
||||
if ls -A "$PROMPT_SUBMODULE"; then
|
||||
git submodule init
|
||||
git submodule update
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
source "$PROMPT_SUBMODULE/gitstatus.prompt.sh"
|
||||
Reference in New Issue
Block a user