Skip to content

Commit 32efe0a

Browse files
committed
Update include statement
Signed-off-by: Andres Gongora <[email protected]>
1 parent 75ce48e commit 32efe0a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

bash-tools

synth-shell-prompt/synth-shell-prompt.sh

+9-2
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,21 @@
3636
##
3737
##
3838

39-
## INCLUDE()
40-
[ "$(type -t include)"!='function' ]&&{ include(){ { [ -z "$_IR" ]&&_IR="$PWD"&&cd $(dirname "${BASH_SOURCE[0]}")&&include "$1"&&cd "$_IR"&&unset _IR;}||{ local d=$PWD&&cd "$(dirname "$PWD/$1")"&&. "$(basename "$1")"&&cd "$d";}||{ echo "Include failed $PWD->$1"&&exit 1;};};}
39+
40+
41+
##==============================================================================
42+
## EXTERNAL DEPENDENCIES
43+
##==============================================================================
44+
[ "$(type -t include)" != 'function' ]&&{ include(){ { [ -z "$_IR" ]&&_IR="$PWD"&&cd $(dirname "${BASH_SOURCE[0]}")&&include "$1"&&cd "$_IR"&&unset _IR;}||{ local d=$PWD&&cd "$(dirname "$PWD/$1")"&&. "$(basename "$1")"&&cd "$d";}||{ echo "Include failed $PWD->$1"&&exit 1;};};}
4145

4246
include '../bash-tools/bash-tools/color.sh'
4347
include '../config/synth-shell-prompt.config'
4448

4549

4650

51+
52+
53+
4754
synth_shell_prompt()
4855
{
4956

0 commit comments

Comments
 (0)