Skip to content

Commit

Permalink
Colors are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov committed Nov 10, 2024
1 parent ae77db0 commit 6658adc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/mud/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('┼')

Expand Down

0 comments on commit 6658adc

Please sign in to comment.