From a68a29fd768eb7c8d8a9252b05338d8920a21616 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 11 Jun 2023 00:54:58 +0200 Subject: [PATCH] large and midfiles --- home/.zsh-server/zshrc | 2 ++ home/.zsh/zshrc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/home/.zsh-server/zshrc b/home/.zsh-server/zshrc index 22d86c2..eb026ef 100644 --- a/home/.zsh-server/zshrc +++ b/home/.zsh-server/zshrc @@ -21,6 +21,8 @@ alias gls=/bin/ls ### Functions function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } +function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" } +function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" } ### ZSH HOME export ZSH=$HOME/.zsh-server diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index c0bceee..1ce512f 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -31,6 +31,8 @@ alias gls=/bin/ls ### Functions function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } +function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" } +function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" } ### ZSH HOME export ZSH=$HOME/.zsh