mirror of
https://github.com/dbcli/pgcli
synced 2024-06-16 01:42:23 +00:00
change default dir of config, log & history
This commit is contained in:
parent
cda709f02c
commit
c375fe36c1
|
@ -464,8 +464,8 @@ class PGCli(object):
|
|||
@click.option('-v', '--version', is_flag=True, help='Version of pgcli.')
|
||||
@click.option('-d', '--dbname', default='', envvar='PGDATABASE',
|
||||
help='database name to connect to.')
|
||||
@click.option('--pgclirc', default='~/.pgclirc', envvar='PGCLIRC',
|
||||
help='Location of .pgclirc file.')
|
||||
@click.option('--pgclirc', default='~/.config/pgcli/config', envvar='PGCLIRC',
|
||||
help='Location of pgclirc file.')
|
||||
@click.argument('database', default=lambda: None, envvar='PGDATABASE', nargs=1)
|
||||
@click.argument('username', default=lambda: None, envvar='PGUSER', nargs=1)
|
||||
def cli(database, user, host, port, prompt_passwd, never_prompt, dbname,
|
||||
|
|
|
@ -16,10 +16,10 @@ wider_completion_menu = False
|
|||
multi_line = False
|
||||
|
||||
# log_file location.
|
||||
log_file = ~/.pgcli.log
|
||||
log_file = ~/.config/pgcli/log
|
||||
|
||||
# history_file location.
|
||||
history_file = ~/.pgcli-history
|
||||
history_file = ~/.config/pgcli/history
|
||||
|
||||
# Default log level. Possible values: "CRITICAL", "ERROR", "WARNING", "INFO"
|
||||
# and "DEBUG".
|
||||
|
|
Loading…
Reference in New Issue
Block a user