Skip to content

Commit 65938eb

Browse files
committed
Remove blue chevrons from my startup file
The ASCII control characters were breaking the history behaviour -- in particular if I ever tried to up-arrow into my history, the alignment would be wonky.
1 parent 9ad1652 commit 65938eb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pythonstartup.py

-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
99
* Use pprint() by default.
1010
https://gist.github.com/chekunkov/848c3472d4b0bee69bccd2e77907a590
11-
* Blue chevrons
12-
http://www.jasonamyers.com/2017/default-to-pprint-python-repl/
1311
* Tab completion
1412
https://github.com/patrik-johansson/dotfiles/blob/master/.pythonstartup
1513
@@ -37,9 +35,6 @@ def displayhook_pprint(o):
3735
builtins._ = o
3836

3937

40-
sys.ps1 = "\033[0;34m>>> \033[0m"
41-
sys.ps2 = "\033[1;34m... \033[0m"
42-
4338
sys.displayhook = displayhook_pprint
4439

4540
readline.parse_and_bind("tab: complete")

0 commit comments

Comments
 (0)