End of week update
This commit is contained in:
parent
1ec9924716
commit
c7f0f09c92
2 changed files with 2 additions and 36 deletions
BIN
archive.tar.gz
BIN
archive.tar.gz
Binary file not shown.
|
@ -5,6 +5,8 @@
|
||||||
_install()
|
_install()
|
||||||
{
|
{
|
||||||
echo "Installing!"
|
echo "Installing!"
|
||||||
|
echo "Installing base packages"
|
||||||
|
echo "Installing git, vim and fzf"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,42 +34,6 @@ _help()
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
_extract_notes()
|
|
||||||
{
|
|
||||||
if [ ! -e "./archive.tar.gz" ];
|
|
||||||
then
|
|
||||||
echo "archive.tar.gz does not exist."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mkdir tmp
|
|
||||||
tar xzf archive.tar.gz -C .
|
|
||||||
cp -r ./tmp/wiki $(dirname $VIMWIKIPATH)
|
|
||||||
cp ./tmp/todo.txt $TODOTXTPATH
|
|
||||||
cp ./tmp/.vimrc $MYVIMRC
|
|
||||||
rm -r ./tmp
|
|
||||||
echo "Notes successfully extracted from archive."
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
_storage_notes()
|
|
||||||
{
|
|
||||||
mkdir tmp
|
|
||||||
cp $TODOTXTPATH ./tmp/
|
|
||||||
cp -r $VIMWIKIPATH ./tmp/
|
|
||||||
cp $MYVIMRC ./tmp/
|
|
||||||
tar czf archive.tar.gz ./tmp/
|
|
||||||
rm -r tmp
|
|
||||||
echo "Notes successfully stored!"
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
_launch_notes()
|
|
||||||
{
|
|
||||||
tmux new-session -d 'bash'
|
|
||||||
tmux new-window 'vim $TODOTXTPATH $VIMWIKIPATH/index.md'
|
|
||||||
tmux -2 attach-session -d
|
|
||||||
}
|
|
||||||
|
|
||||||
# main
|
# main
|
||||||
|
|
||||||
# check for the neccessary variables
|
# check for the neccessary variables
|
||||||
|
|
Loading…
Reference in a new issue