Skip to content

Commit

Permalink
Disable sudo item by default
Browse files Browse the repository at this point in the history
  • Loading branch information
re-xyr committed Dec 24, 2023
1 parent 1bc8ea3 commit 807caed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions functions/_tide_item_sudo.fish
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion functions/tide/configure/configs/classic.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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 
Expand Down
2 changes: 1 addition & 1 deletion functions/tide/configure/configs/lean.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' '
Expand Down
2 changes: 1 addition & 1 deletion functions/tide/configure/configs/rainbow.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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 
Expand Down

0 comments on commit 807caed

Please sign in to comment.