Anti fudo
This commit is contained in:
parent
511195a7e5
commit
e31d0c2fea
14
env.nu
14
env.nu
|
@ -83,6 +83,18 @@ def create_left_prompt [] {
|
|||
""
|
||||
}
|
||||
|
||||
let sudo_compromised = if not (which ^sudo | get path.0) == "/usr/bin/sudo" {
|
||||
(ansi red_bold) + " ‹sudo compromised›" + (ansi reset)
|
||||
} else {
|
||||
""
|
||||
}
|
||||
|
||||
let fudo_running = if (do { systemctl status fudo } | complete | get exit_code) == 0 {
|
||||
(ansi red_bold) + " ‹fudo running›" + (ansi reset)
|
||||
} else {
|
||||
""
|
||||
}
|
||||
|
||||
[
|
||||
$arrow_color
|
||||
$first_line_arrow
|
||||
|
@ -100,6 +112,8 @@ def create_left_prompt [] {
|
|||
$dir
|
||||
$git_branch_content
|
||||
$kube
|
||||
$sudo_compromised
|
||||
$fudo_running
|
||||
"\n"
|
||||
$reset_ansi
|
||||
$arrow_color
|
||||
|
|
Loading…
Reference in New Issue