Skip to content

Commit e591403

Browse files
committed
avoid edit bashrc
Signed-off-by: luarss <[email protected]>
1 parent 83021aa commit e591403

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

env.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
2525
fi
2626

2727
# For Makefile environment
28-
BASHRC_FILE=~/.bashrc
29-
if ! grep -q "MAKEFILE_ENV" "$BASHRC_FILE"; then
30-
cat <<EOL >> "$BASHRC_FILE"
3128
if [ -n "\$MAKEFILE_ENV" ]; then
3229
PS1='\[\e[32m\]Makefile Environment \[\e[0m\] \w $ '
3330
fi
34-
EOL
35-
source "$BASHRC_FILE"
36-
echo "Bashrc changes applied"
37-
else
38-
echo "Bashrc changes already made"
39-
fi
40-

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ yosys:
10501050
# Drop into a bash shell with all environment variables, useful for debugging
10511051
.PHONY: bash
10521052
bash:
1053-
export MAKEFILE_ENV=1; bash
1053+
export MAKEFILE_ENV=1; bash --init-file $(FLOW_HOME)/../env.sh
10541054

10551055
.PHONY: all_defs
10561056
all_defs : $(foreach file,$(RESULTS_ODB),$(file).def)

0 commit comments

Comments
 (0)