diff --git a/README.md b/README.md index 7f181cd..cf95c90 100644 --- a/README.md +++ b/README.md @@ -72,16 +72,15 @@ Settings are stored in your home directory in `.mudsettings` file. - `run_async = 0/1` - enables asynchronous commands. - `run_table = 0/1` - enables asynchronous commands in a table view. Requires `run_async`. -- `nerd_fonts = 0/1` - use nerd fonts in the output 💅. +- `nerd_fonts = 0/1` - use nerd fonts in output 💅. - `show_borders = 0/1` - enables borders in table view. -- `collapse_paths = 0/1` - simplifies branch name in the branch view. +- `collapse_paths = 0/1` - simplifies branch name in branch view. - `config_path = /home/user/path/.mudconfig` - this is set up by `mud --set-global` [command](#global-mudconfig). ### Aliases -You can create your own aliases for commands. To create your own aliases, edit .mudsettings file, `[alias]` section. .mudsettings has the following aliases by default: - -```ini +You can create your own aliases. To create, edit .mudsettings file's, `[alias]` section. .mudsettings has the following aliases by default: +``` [alias] to = git checkout fetch = git fetch diff --git a/src/mud/utils.py b/src/mud/utils.py index fe5357b..04b42b6 100644 --- a/src/mud/utils.py +++ b/src/mud/utils.py @@ -96,12 +96,12 @@ def table_to_str(table: PrettyTable) -> str: def get_table(field_names: List[str]) -> PrettyTable: def set_style(item: str) -> str: - return f'{DIM}{GRAY}{item}{RESET}' + return f'{DIM}{item}{RESET}' borders = settings.config['mud'].getboolean('show_borders', fallback=False) table = PrettyTable(border=borders, header=False, style=PLAIN_COLUMNS, align='l') if borders: - table.horizontal_char = set_style('─') + table.horizontal_char = set_style(f'─') table.vertical_char = set_style('│') table.junction_char = set_style('┼')