Skip to content

Commit

Permalink
Added missing config files to config-schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ironiq committed Dec 4, 2023
1 parent 423f139 commit ce9d2c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@
"error_symbol": "[❯](bold red)",
"format": "$symbol ",
"success_symbol": "[❯](bold green)",
"root_error_symbol": "[❯](bold purple)",
"root_success_symbol": "[❯](bold blue)",
"vimcmd_replace_one_symbol": "[❮](bold purple)",
"vimcmd_replace_symbol": "[❮](bold purple)",
"vimcmd_symbol": "[❮](bold green)",
Expand Down Expand Up @@ -2194,6 +2196,14 @@
"default": "[❯](bold red)",
"type": "string"
},
"root_success_symbol": {
"default": "[❯](bold blue)",
"type": "string"
},
"root_error_symbol": {
"default": "[❯](bold purple)",
"type": "string"
},
"vimcmd_symbol": {
"default": "[❮](bold green)",
"type": "string"
Expand Down
2 changes: 0 additions & 2 deletions src/modules/character.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,11 @@ fn is_root_user() -> bool {
}

#[cfg(all(target_os = "windows", test))]
#[allow(unused)]
fn is_root_user() -> bool {
false
}

#[cfg(not(target_os = "windows"))]
#[allow(unused)]
fn is_root_user() -> bool {
nix::unistd::geteuid() == nix::unistd::ROOT
}
Expand Down

0 comments on commit ce9d2c1

Please sign in to comment.