mirror of https://github.com/dbcli/pgcli
Override LESS options completely.
This commit is contained in:
parent
be9622e1c3
commit
2576ce1bf5
|
@ -1,4 +1,12 @@
|
|||
Current
|
||||
0.15.3
|
||||
======
|
||||
* Override the LESS options completely instead of appending to it.
|
||||
|
||||
0.15.2
|
||||
=======
|
||||
* Revert back to using psycopg2 as the postgres adapter. psycopg2cffi fails for some tests in Python 3.
|
||||
|
||||
0.15.0
|
||||
=======
|
||||
|
||||
Features:
|
||||
|
|
|
@ -267,13 +267,12 @@ class PGCli(object):
|
|||
def adjust_less_opts(self):
|
||||
less_opts = os.environ.get('LESS', '')
|
||||
self.logger.debug('Original value for LESS env var: %r', less_opts)
|
||||
if not less_opts:
|
||||
os.environ['LESS'] = '-RXF'
|
||||
os.environ['LESS'] = '-RXF'
|
||||
|
||||
if 'X' not in less_opts:
|
||||
os.environ['LESS'] += 'X'
|
||||
if 'F' not in less_opts:
|
||||
os.environ['LESS'] += 'F'
|
||||
#if 'X' not in less_opts:
|
||||
#os.environ['LESS'] += 'X'
|
||||
#if 'F' not in less_opts:
|
||||
#os.environ['LESS'] += 'F'
|
||||
|
||||
return less_opts
|
||||
|
||||
|
|
Loading…
Reference in New Issue