diff --git a/env.nu b/env.nu index cf7c994..622f3e2 100644 --- a/env.nu +++ b/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