From 807caed0b339768493044695af9e5d9d68a25b36 Mon Sep 17 00:00:00 2001 From: Xy Ren Date: Sun, 24 Dec 2023 13:15:48 +0800 Subject: [PATCH] Disable sudo item by default --- functions/_tide_item_sudo.fish | 1 + functions/tide/configure/configs/classic.fish | 2 +- functions/tide/configure/configs/lean.fish | 2 +- functions/tide/configure/configs/rainbow.fish | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/_tide_item_sudo.fish b/functions/_tide_item_sudo.fish index 25580818..f2d32d36 100644 --- a/functions/_tide_item_sudo.fish +++ b/functions/_tide_item_sudo.fish @@ -1,3 +1,4 @@ function _tide_item_sudo + # note that calling `sudo -n` resets the sudo timer; as such, this item is disabled by default. sudo -n true &>/dev/null && _tide_print_item sudo $tide_sudo_icon end diff --git a/functions/tide/configure/configs/classic.fish b/functions/tide/configure/configs/classic.fish index c1757340..a4174e42 100644 --- a/functions/tide/configure/configs/classic.fish +++ b/functions/tide/configure/configs/classic.fish @@ -80,7 +80,7 @@ tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version tide_python_bg_color 444444 tide_python_color 00AFAF tide_right_prompt_frame_enabled true -tide_right_prompt_items status cmd_duration sudo context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig +tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig tide_right_prompt_prefix  tide_right_prompt_separator_diff_color  tide_right_prompt_separator_same_color  diff --git a/functions/tide/configure/configs/lean.fish b/functions/tide/configure/configs/lean.fish index 32a4272d..00e6b48a 100644 --- a/functions/tide/configure/configs/lean.fish +++ b/functions/tide/configure/configs/lean.fish @@ -80,7 +80,7 @@ tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version tide_python_bg_color normal tide_python_color 00AFAF tide_right_prompt_frame_enabled false -tide_right_prompt_items status cmd_duration sudo context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig +tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig tide_right_prompt_prefix ' ' tide_right_prompt_separator_diff_color ' ' tide_right_prompt_separator_same_color ' ' diff --git a/functions/tide/configure/configs/rainbow.fish b/functions/tide/configure/configs/rainbow.fish index 7c7edec8..8ed36da7 100644 --- a/functions/tide/configure/configs/rainbow.fish +++ b/functions/tide/configure/configs/rainbow.fish @@ -80,7 +80,7 @@ tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version tide_python_bg_color 444444 tide_python_color 00AFAF tide_right_prompt_frame_enabled true -tide_right_prompt_items status cmd_duration sudo context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig +tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig tide_right_prompt_prefix  tide_right_prompt_separator_diff_color  tide_right_prompt_separator_same_color 