Skip to content

Commit

Permalink
Update include statement
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Gongora <[email protected]>
  • Loading branch information
andresgongora committed Apr 18, 2020
1 parent 75ce48e commit 32efe0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bash-tools
11 changes: 9 additions & 2 deletions synth-shell-prompt/synth-shell-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,21 @@
##
##

## INCLUDE()
[ "$(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;};};}


##==============================================================================
## EXTERNAL DEPENDENCIES
##==============================================================================
[ "$(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;};};}

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






synth_shell_prompt()
{

Expand Down

0 comments on commit 32efe0a

Please sign in to comment.