From d8e63be33e4766c4c06173d85a2e8e753a62ddb5 Mon Sep 17 00:00:00 2001 From: Bauke Date: Tue, 16 May 2023 20:16:51 +0200 Subject: [PATCH] Add bottom alias. --- .functions.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.functions.zsh b/.functions.zsh index 3571936..30a7f27 100644 --- a/.functions.zsh +++ b/.functions.zsh @@ -1,3 +1,13 @@ +# Alias for bottom with shorthand for configuration. +# bottom [config (default: none)] +bottom () { + if [[ -z $1 ]]; then + btm + else + btm -C "$HOME/.config/bottom/$1.toml" + fi +} + # Returns the previous month as "Month Year" (ie. "April 2023"). # date-last-month-year date-last-month-year () {