From a13d8b577908b2892cf8344827f9087227c9ed31 Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Fri, 20 May 2022 10:50:59 -0500 Subject: [PATCH] Fix bash kernel error for 'bracketed paste' --- Build.md | 9 +++++++++ scripts/gcp-create.sh | 1 + 2 files changed, 10 insertions(+) diff --git a/Build.md b/Build.md index cd47601..4a61cca 100644 --- a/Build.md +++ b/Build.md @@ -73,3 +73,12 @@ Expect that `aws` is installed locally. A ssh-key named 'learner' is required t ## Azure Expect that `az` is installed and configured locally. It will utilize your ~/.ssh/id_rsa.pub key. + +## Bugs and Fixes + +The bash kernel and Python do not like the new "bracketed paste" mode of the new bash/readline. To fix you can disable "bracketed paste" mode by doing +```bash +echo "set enable-bracketed-paste off" > ~/.inputrc +``` +Note, this removes some copy/paste protection and recommended only for disposable VM's. + diff --git a/scripts/gcp-create.sh b/scripts/gcp-create.sh index aaaefed..1a62094 100755 --- a/scripts/gcp-create.sh +++ b/scripts/gcp-create.sh @@ -43,6 +43,7 @@ gcloud compute ssh --zone=$ZONE $NAME@$VM --ssh-flag='-A' < .ssh/known_hosts +echo "set enable-bracketed-paste off" > ~/.inputrc git config --global color.ui auto git config --global push.default simple git config --global pull.ff only