Added .bashrc and rss feeds into dev-env storage/extraction
This commit is contained in:
parent
ea558bb07d
commit
ec0c4b8cde
2 changed files with 15 additions and 2 deletions
BIN
archive.tar.gz
BIN
archive.tar.gz
Binary file not shown.
17
dev-env.sh
17
dev-env.sh
|
@ -9,8 +9,10 @@ _notes_locations_print()
|
||||||
{
|
{
|
||||||
echo "\t\ttodo.txt:\t$TODOTXTPATH"
|
echo "\t\ttodo.txt:\t$TODOTXTPATH"
|
||||||
echo "\t\twiki:\t\t$VIMWIKIPATH"
|
echo "\t\twiki:\t\t$VIMWIKIPATH"
|
||||||
echo "\t\tvimrc\t\t$MYVIMRC"
|
echo "\t\tvimrc:\t\t$MYVIMRC"
|
||||||
echo "\t\tlog.txt\t\t$LOGTXTPATH"
|
echo "\t\tlog.txt:\t$LOGTXTPATH"
|
||||||
|
echo "\t\tbashrc:\t\t$HOME/.bashrc"
|
||||||
|
echo "\t\trss feeds:\t$HOME/.config/newsraft/feeds"
|
||||||
}
|
}
|
||||||
|
|
||||||
_help()
|
_help()
|
||||||
|
@ -38,6 +40,8 @@ _extract_notes()
|
||||||
cp ./tmp/todo.txt $TODOTXTPATH
|
cp ./tmp/todo.txt $TODOTXTPATH
|
||||||
cp ./tmp/.vimrc $MYVIMRC
|
cp ./tmp/.vimrc $MYVIMRC
|
||||||
cp ./tmp/log.txt $LOGTXTPATH
|
cp ./tmp/log.txt $LOGTXTPATH
|
||||||
|
cp ./tmp/bashrc $HOME/.bashrc
|
||||||
|
cp ./tmp/rssfeeds $HOME/.config/newsraft/feeds
|
||||||
rm -r ./tmp
|
rm -r ./tmp
|
||||||
echo "Notes successfully extracted from archive."
|
echo "Notes successfully extracted from archive."
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -50,6 +54,8 @@ _storage_notes()
|
||||||
cp -r $VIMWIKIPATH ./tmp/
|
cp -r $VIMWIKIPATH ./tmp/
|
||||||
cp $MYVIMRC ./tmp/
|
cp $MYVIMRC ./tmp/
|
||||||
cp $LOGTXTPATH ./tmp/
|
cp $LOGTXTPATH ./tmp/
|
||||||
|
cp $HOME/.bashrc ./tmp/bashrc
|
||||||
|
cp $HOME/.config/newsraft/feeds ./tmp/rssfeeds
|
||||||
tar czf archive.tar.gz ./tmp/
|
tar czf archive.tar.gz ./tmp/
|
||||||
rm -r tmp
|
rm -r tmp
|
||||||
echo "Notes successfully stored!"
|
echo "Notes successfully stored!"
|
||||||
|
@ -126,6 +132,13 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$RSSFEEDSPATH" ];
|
||||||
|
then
|
||||||
|
echo "RSSFEEDSPATH not set."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# run the user's command
|
# run the user's command
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
Loading…
Reference in a new issue