From 15cd361121e138c733b4823c8783a1cad6420d7c Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Thu, 16 Feb 2023 23:37:32 +0500 Subject: [PATCH] Hide output of "cd -" command --- histd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/histd.sh b/histd.sh index a3c3b0c..26f6645 100755 --- a/histd.sh +++ b/histd.sh @@ -23,7 +23,7 @@ function edit_note { # Open editor cd $BASE_DIR $EDITOR $PATH_TO_FILE - cd - + cd - > /dev/null } function backup { @@ -31,7 +31,7 @@ function backup { ARCHIVE_PATH=~/histd-$(date +%F).tar.xz cd $BASE_DIR tar cfJ $ARCHIVE_PATH ../histd - cd - + cd - > /dev/null echo Saved to $ARCHIVE_PATH }