Environment Variables


Variables Affecting Mycli


$FZF_DEFAULT_OPTS

$FZF_DEFAULT_OPTS does not directly affect mycli sessions, but if set, can affect the external program fzf which is executed for fuzzy history search. See man fzf for more.


$MYCLI_HISTFILE

$MYCLI_HISTFILE sets the location of the history file, which is ~/.mycli-history by default. See also the history_file setting in ~/.myclirc.


$MYCLI_LLM_OFF

$MYCLI_LLM_OFF suppresses loading of LLM libraries, making the /llm feature unavailable. If you don't use the /llm feature, setting this variable may improve startup time.


$MYSQL_DSN

$MYSQL_DSN sets a DSN to use for connecting to a server.


$MYSQL_HOST

$MYSQL_HIST sets a hostname to use for connecting to a server.


$MYSQL_PWD

$MYSQL_PWD sets a password to use for connecting to a server.


$MYSQL_TCP_PORT

$MYSQL_TCP_PORT sets a TCP port to use for connecting to a server.


$MYSQL_UNIX_SOCKET

$MYSQL_UNIX_SOCKET sets a Unix Domain Socket to use for connecting to a server.


$MYSQL_USER

$MYSQL_USER sets a username to use for connecting to a server.


$PAGER

$PAGER controls the pager for mycli output in the case that pager is not set in ~/.myclirc.


$LESS

$LESS does not directly affect mycli sessions, but if set, can affect the behavior of theless executable, commonly used as the mycli output pager. See man less for more.


$VISUAL/$EDITOR

$VISUAL and $EDITOR do not directly affect mycli sessions, but are used by the prompt-toolkit dependency to invoke the editor triggered by the mycli /edit command or the control-x, control-e key sequence.

$VISUAL is preferred.

See the editor docs for more.


$XDG_CONFIG_HOME

For users of the XDG Base Directory Specification, mycli will search $XDG_CONFIG_HOME for its configuration file before checking the $HOME directory.

Sponsors

Nova Kid School

blogroll

social