Hide output of "cd -" command

This commit is contained in:
Ivan R. 2023-02-16 23:37:32 +05:00
parent 8138f3643a
commit 15cd361121
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C

View file

@ -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
}