mirror of
https://github.com/thebaer/squigglelog
synced 2018-07-20 10:45:21 +00:00
Add install and new entry util script
This commit is contained in:
parent
3f491df75d
commit
543eb0203c
28
install.sh
Executable file
28
install.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/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."
|
5
util/squiggle.sh
Executable file
5
util/squiggle.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
entriesDir=$HOME/~entries/
|
||||
vi "$entriesDir$(date +'%Y%m%d')" "+set wrap" "+set linebreak"
|
||||
echo "Done!"
|
Loading…
Reference in New Issue
Block a user