Skip to content

Commit 2b3ec10

Browse files
Shaun Princeclaude
andcommitted
feat: Add --enable-all and --disable-all flags (closes #365)
- --enable-all: Show all possible info items, overrides config - --disable-all: Hide all info items (shows only title/underline/colors) - Combine flags: neofetch --enable-all --disable gpu memory Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8c7b10e commit 2b3ec10

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

neofetch

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3030
# SOFTWARE.
3131

32-
version=7.3.1
32+
version=7.4.0
3333

3434
# Fallback to a value of '5' for shells which support bash
3535
# but do not set the 'BASH_' shell variables (osh).
@@ -5073,6 +5073,12 @@ INFO:
50735073
50745074
NOTE: You can supply multiple args. eg. 'neofetch --disable cpu gpu'
50755075
5076+
--enable-all Show all possible info items (overrides config).
5077+
5078+
--disable-all Hide all info items (shows only title/underline).
5079+
Combine with --enable-all first, then --disable to
5080+
remove specific items. eg. 'neofetch --enable-all --disable gpu'
5081+
50765082
--title_fqdn on/off Hide/Show Fully Qualified Domain Name in title.
50775083
--package_managers on/off Hide/Show Package Manager names. (on, tiny, off)
50785084
--os_arch on/off Hide/Show OS architecture.
@@ -5380,6 +5386,51 @@ get_args() {
53805386
done
53815387
;;
53825388

5389+
"--enable-all")
5390+
print_info() {
5391+
info title
5392+
info underline
5393+
5394+
info "OS" distro
5395+
info "Host" model
5396+
info "Kernel" kernel
5397+
info "Uptime" uptime
5398+
info "Packages" packages
5399+
info "Shell" shell
5400+
info "Resolution" resolution
5401+
info "DE" de
5402+
info "WM" wm
5403+
info "WM Theme" wm_theme
5404+
info "Theme" theme
5405+
info "Icons" icons
5406+
info "Terminal" term
5407+
info "Terminal Font" term_font
5408+
info "CPU" cpu
5409+
info "GPU" gpu
5410+
info "Memory" memory
5411+
info "GPU Driver" gpu_driver
5412+
info "CPU Usage" cpu_usage
5413+
info "Disk" disk
5414+
info "Battery" battery
5415+
info "Font" font
5416+
info "Song" song
5417+
info "Local IP" local_ip
5418+
info "Public IP" public_ip
5419+
info "Users" users
5420+
info "Locale" locale
5421+
5422+
info cols
5423+
}
5424+
;;
5425+
5426+
"--disable-all")
5427+
print_info() {
5428+
info title
5429+
info underline
5430+
info cols
5431+
}
5432+
;;
5433+
53835434
# Text Colors
53845435
"--colors")
53855436
unset colors

0 commit comments

Comments
 (0)