Hide output of "cd -" command
This commit is contained in:
parent
8138f3643a
commit
15cd361121
1 changed files with 2 additions and 2 deletions
4
histd.sh
4
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue