mirror of
https://github.com/thebaer/squigglelog
synced 2018-07-20 10:45:21 +00:00
29 lines
634 B
Bash
Executable File
29 lines
634 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Installing squigglelog..."
|
|
|
|
echo "Linking entries folder to $HOME/~entries"
|
|
if [ ! -e $HOME/~entries ]; then
|
|
ln -s $PWD/entries/ $HOME/~entries
|
|
else
|
|
echo "Folder already exists, skipping..."
|
|
fi
|
|
|
|
echo "Installing utility scripts..."
|
|
if [ ! -e $HOME/bin ]; then
|
|
EM="\033[1;33m"
|
|
NC="\033[0m"
|
|
echo "Creating bin/ folder"
|
|
mkdir $HOME/bin
|
|
echo -e "${EM}You may have to add this to your ~/.bashrc file:"
|
|
echo -e "export PATH=${PATH}:$HOME/bin$NC"
|
|
fi
|
|
cp util/* $HOME/bin/
|
|
|
|
echo "Building squigglelog..."
|
|
go build squigglelog.go
|
|
|
|
echo "Done!"
|
|
echo
|
|
echo "To get started, type squiggle.sh and write your first entry."
|