2015-2019 - Licensed under GPL, any version
MyLog is a script written for the ZSH shell that I use to log one-liners about what I do in my life. It's just for fun, but this script can also be used to keep track of changes you've made to your system or events that you may want to have on record.
It's really simple, but it works.
How to install
You can copy the mylog shell script to, i.e. ~/bin/mylog, and make it executable with chmod 750 ~/bin/mylog.
Then just run the script. It will ask if you want to run setup.
Hit Return and the script creates the log-file and creates the symlinks neccessary.
You will have to edit the Makefile and then run make install.
When a new version is released, you can run make update to just install mylog. This is broken at the moment. Haven't had a chance to look at it.
Or, you can do it manually as described below.
- Download script and place it in your path. I use ~/bin/
- Create a directory called ~/.config/mylog (mkdir ~/.config/mylog)
- Create a file called mylog (touch ~/.config/mylog/mylog)
- Create symlinks for the other functions
- ln -s ~/bin/mylog ~/bin/myview
- ln -s ~/bin/mylog ~/bin/mysearch
- Protect your log
- chmod 640 ~/.config/mylog
Plans or hopes for the future
I'd like to extend the script so that it'll work in a department. Thinking that it'll log based on the current user and with a global log-file, placed on a global share.
Perhaps create a way to create reports that will be emailed to a set of defined users. The report will be based on dates or a user and can be run as a cron-job.
Let me know what you'd like to see this script do and I'll try.
Screenshots