From 7a1001f753aeddfd906aef906bd769f941a475fe Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 1 Feb 2012 23:13:03 +0100 Subject: [PATCH] htoprc: Add, basic configuration file. Also udpate setup.sh and .gitignore. --- .gitignore | 1 + htoprc.in | 34 ++++++++++++++++++++++++++++++++++ setup.sh | 6 ++++++ 3 files changed, 41 insertions(+) create mode 100644 htoprc.in diff --git a/.gitignore b/.gitignore index 9c1271b..84e94fe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # Ignore generated files. +htoprc screenrc # Ignore temporary zsh files. zsh/cache diff --git a/htoprc.in b/htoprc.in new file mode 100644 index 0000000..515501d --- /dev/null +++ b/htoprc.in @@ -0,0 +1,34 @@ +# htop configuration file. + +# Copyright (C) 2011-2012 Simon Ruderich +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . + + +# Ordered in the same way htop orders them for easy diffing. + +# Don't display kernel threads. +hide_kernel_threads=1 +# But display userland threads. +hide_userland_threads=0 + +# Highlight program base name. +highlight_base_name=1 +# Highlight megabytes in memory usage. +highlight_megabytes=1 +# Highlight threads. +highlight_threads=1 + +# Display detailed CPU information, including IO-Wait. +detailed_cpu_time=1 diff --git a/setup.sh b/setup.sh index 51074e2..234b17b 100755 --- a/setup.sh +++ b/setup.sh @@ -63,6 +63,9 @@ if [ ! -d /sys/class/power_supply/BAT0 ]; then mv screenrc.tmp screenrc fi +# Htop overwrites the comments in its configuration file. +generate cat htoprc .in + # Link setup for shells. link shell ~/.shell link bash ~/.bash @@ -87,6 +90,9 @@ link screenrc ~/.screenrc if installed tmux; then link tmux.conf ~/.tmux.conf fi +if installed htop; then + link htoprc ~/.htoprc +fi # Create rlwrap history directory. mkdir -p shell/rlwrap -- 2.45.2