68 lines
1,007 B
Bash
Executable file
68 lines
1,007 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# This is a script for setting up all the things I like :3
|
|
|
|
_install()
|
|
{
|
|
echo "Installing!"
|
|
echo "Installing base packages"
|
|
echo "Installing git, vim and fzf"
|
|
exit 0
|
|
}
|
|
|
|
_print_title()
|
|
{
|
|
echo "$(figlet mskor dev-env)"
|
|
}
|
|
|
|
_notes_locations_print()
|
|
{
|
|
echo "\t\ttodo.txt:\t$TODOTXTPATH"
|
|
echo "\t\twiki:\t\t$VIMWIKIPATH"
|
|
echo "\t\tvimrc\t\t$MYVIMRC"
|
|
}
|
|
|
|
_help()
|
|
{
|
|
_print_title
|
|
echo "dev-env.sh usage: $0 [mode]"
|
|
echo "\txn: Extract notes to:"
|
|
_notes_locations_print
|
|
echo "\tsn: Store notes:"
|
|
_notes_locations_print
|
|
echo "\tnotes: Launch note making tmux session."
|
|
exit 1
|
|
}
|
|
|
|
# main
|
|
|
|
# check for the neccessary variables
|
|
|
|
if [ -z "$VIMWIKIPATH" ];
|
|
then
|
|
echo "VIMWIKIPATH not set."
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$TODOTXTPATH" ];
|
|
then
|
|
echo "TODOTXTPATH not set."
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$MYVIMRC" ];
|
|
then
|
|
echo "MYVIMRC not set."
|
|
exit 1
|
|
fi
|
|
|
|
# run the user's command
|
|
|
|
case "$1" in
|
|
sn ) _storage_notes ;;
|
|
xn ) _extract_notes ;;
|
|
notes ) _launch_notes ;;
|
|
install ) _install ;;
|
|
* ) _help ;;
|
|
esac
|
|
|