Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit

Permalink
Fix bash kernel error for 'bracketed paste'
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed May 20, 2022
1 parent 378e33c commit a13d8b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

1 change: 1 addition & 0 deletions scripts/gcp-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ gcloud compute ssh --zone=$ZONE $NAME@$VM --ssh-flag='-A' <<EOF
sudo apt-get update
sudo apt-get install --yes git python3-pip python3-venv bash-completion spell
ssh-keyscan ${GITHUB} > .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
Expand Down

0 comments on commit a13d8b5

Please sign in to comment.