From deae930d72bb5d3e6ca977f8699da225f267f9a9 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 4 Feb 2023 17:14:57 +0100 Subject: [PATCH] largefiles tweaks --- home/.zsh-server/zshrc | 3 ++- home/.zsh/zshrc | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/home/.zsh-server/zshrc b/home/.zsh-server/zshrc index ea9461a..2e3ae73 100644 --- a/home/.zsh-server/zshrc +++ b/home/.zsh-server/zshrc @@ -14,8 +14,9 @@ alias grep="grep --color" alias egrep="grep -E" alias lgrep="find | grep" alias psgrep="ps axu | grep" -alias largefiles='du -h ./DATEN | grep -P "\d+\.\d+(G|T)\"' alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"' +### Functions +function largefiles () { du -h "$@" | grep -P "\d+\.\d+(G|T)"; } ### ZSH HOME export ZSH=$HOME/.zsh-server diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index d82857c..2d7db07 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -21,11 +21,13 @@ alias grep="grep --color" alias egrep="grep -E" alias lgrep="find | grep" alias psgrep="ps axu | grep" -alias largefiles='du -h ./DATEN | grep -P "\d+\.\d+(G|T)\"' alias plasmarestart="killall plasmashell; kstart plasma-desktop" alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"' alias vim="vimx" +### Functions +function largefiles () { du -h "$@" | grep -P "\d+\.\d+(G|T)"; } + ### ZSH HOME export ZSH=$HOME/.zsh