Skip to content

Commit

Permalink
Enable readline line-editing in psql
Browse files Browse the repository at this point in the history
The ANSI escape codes confused the line editor and prevented normal line
editing.
  • Loading branch information
francois committed Mar 21, 2015
1 parent db9978b commit 979fce9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions psqlrc
Expand Up @@ -8,8 +8,7 @@
\pset linestyle unicode
\pset border 1
\pset null '[NULL]'
\set PROMPT1 '%[%033[31;5m%]%x%[%033[0m%]%[%033[31;1m%]%n%[%033[33;1m%]@%[%033[32;1m%m%[%033[0m%] %[%033[34;1m%]%/%[%033[0m%] # '
\set PROMPT2 '%033[33;1m >>> %033[0m%'
\set PROMPT1 '%x%n@%m %/ # '
\pset pager on
\timing
\encoding unicode
Expand Down

0 comments on commit 979fce9

Please sign in to comment.