## Starting Gollum Shell Script

Script for starting a gollum wiki (from anywhere) in the background when developing with RVM.

The first part of the script checks if the RVM-Ruby environment is used instead of your login shell (see <https://rvm.io/workflow/scripting/>).

The second part is starting the wiki in the background with `screen`.

### About `screen`

- for checking all screens open in the background: `screen -ls`
- for reconnecting to the wiki: `screen -r wiki`
    - leaving the wiki running and returning to the shell: `⌃A` + `D`
    - closing the background screen: `⌃C`

### Notes

I tried to set the path to the script in a variable like in this excellent article [Personal Wiki using GitHub and Gollum on OS X](http://www.nomachetejuggling.com/2012/05/15/personal-wiki-using-github-and-gollum-on-os-x/).
But the example code `DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"` didn't work for me. The above solution is running smoothly now with my setup.