Skip to content

Instantly share code, notes, and snippets.

@leveled
Created October 21, 2019 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leveled/6b92c4fd984644282a5535e2d1ce38ff to your computer and use it in GitHub Desktop.
Save leveled/6b92c4fd984644282a5535e2d1ce38ff to your computer and use it in GitHub Desktop.
Replace contents of curl in-line using sed
curl -s 'https://raw.githubusercontent.com/prompt-toolkit/ptpython/master/examples/ptpython_config/config.py' 2>&1 | sed --expression='s/repl.vi_mode = False/repl.vi_mode = True/g' | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment