From 11ecbdaf04a308f9ce84365c9be3c8aede4bbff3 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 20 Aug 2023 13:56:49 -0700 Subject: [PATCH] Add hashall function --- dotfiles/config/htop/htoprc | 44 ++++++++++++++++++++++++++-------- dotfiles/zshrc.d/functions.zsh | 4 ++++ 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/dotfiles/config/htop/htoprc b/dotfiles/config/htop/htoprc index 5db8326..3e2ec5f 100644 --- a/dotfiles/config/htop/htoprc +++ b/dotfiles/config/htop/htoprc @@ -1,16 +1,17 @@ # Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. +htop_version=3.2.2 +config_reader_min_version=3 fields=0 48 17 18 38 39 40 2 46 47 49 1 -sort_key=47 -sort_direction=-1 -tree_sort_key=0 -tree_sort_direction=1 hide_kernel_threads=1 hide_userland_threads=1 +hide_running_in_container=0 shadow_other_users=0 show_thread_names=0 show_program_path=1 highlight_base_name=0 +highlight_deleted_exe=1 +shadow_distribution_path_prefix=0 highlight_megabytes=1 highlight_threads=1 highlight_changes=0 @@ -18,9 +19,8 @@ highlight_changes_delay_secs=5 find_comm_in_cmdline=1 strip_exe_from_cmdline=1 show_merged_command=0 -tree_view=0 -tree_view_always_by_pid=0 header_margin=1 +screen_tabs=0 detailed_cpu_time=0 cpu_count_from_one=1 show_cpu_usage=1 @@ -32,8 +32,32 @@ account_guest_in_cpu_meter=0 color_scheme=6 enable_mouse=1 delay=15 -left_meters=AllCPUs Memory Swap -left_meter_modes=1 1 1 -right_meters=Tasks LoadAverage Uptime -right_meter_modes=2 2 2 hide_function_bar=0 +header_layout=two_50_50 +column_meters_0=AllCPUs Memory Swap +column_meter_modes_0=1 1 1 +column_meters_1=Tasks LoadAverage Uptime +column_meter_modes_1=2 2 2 +tree_view=0 +sort_key=46 +tree_sort_key=0 +sort_direction=-1 +tree_sort_direction=1 +tree_view_always_by_pid=0 +all_branches_collapsed=0 +screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command +.sort_key=PERCENT_CPU +.tree_sort_key=PID +.tree_view=0 +.tree_view_always_by_pid=0 +.sort_direction=-1 +.tree_sort_direction=1 +.all_branches_collapsed=0 +screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command +.sort_key=IO_RATE +.tree_sort_key=PID +.tree_view=0 +.tree_view_always_by_pid=0 +.sort_direction=-1 +.tree_sort_direction=1 +.all_branches_collapsed=0 diff --git a/dotfiles/zshrc.d/functions.zsh b/dotfiles/zshrc.d/functions.zsh index 0fe20b7..e6eff8f 100644 --- a/dotfiles/zshrc.d/functions.zsh +++ b/dotfiles/zshrc.d/functions.zsh @@ -21,3 +21,7 @@ if test -f ${HOME}/.zprompt ; then fi fi unset _STARSHIP_PATH + +function hashall { + tee >(md5sum) | tee >(sha1sum) | sha256sum +}