Skip to content

Commit

Permalink
Fix default configuration settings.
Browse files Browse the repository at this point in the history
- The current config file layout cannot be serialized to TOML with serde,
  so switch to YAML.  This necessitates updating to an unreleased
  version of confy.  See: reujab#85, reujab#77, toml-rs/toml-rs#145,
  and toml-rs/toml-rs#407.
- Print out the location of the default config file upon creation fixes:
  reujab#73 and reujab#78.
- Set the default left prompt to *something* so the user isn't left
  scratching their head.
- Change the default icon set to Unicode so that this is usable out of
  the box with as few dependencies as possible.
  • Loading branch information
Alex Zepeda committed Mar 31, 2022
1 parent ca34bf7 commit 5b0ac5d
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 41 deletions.
162 changes: 130 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ serde = { version = "1.0", features = ["derive"] }
chrono = "0.4"
clap = "=3.0.0-beta.2"
clap_derive = "=3.0.0-beta.2"
confy = "0.4"
confy = { git = "https://github.com/rust-cli/confy", features = [ "yaml_conf" ], default-features = false }
dirs = "2"
git2 = "0.13"
hostname = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Since silver is not written in shell script, it should theoretically be compatib

### Icons

To be able to use the custom icons (which are enabled by default), you must patch your font or install a pre-patched font from [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts).
To be able to use the custom icons (which are disabled by default), you must patch your font or install a pre-patched font from [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts).

### Installation

Expand Down
Loading

0 comments on commit 5b0ac5d

Please sign in to comment.