Linux tips and tricks for geeky Christians

Topics of Interest other than Bible Analyzer
Posts: 14
Joined: Tue Mar 27, 2018 5:50 am

Linux tips and tricks for geeky Christians

Postby mitch_j » Sat Apr 07, 2018 6:59 am

This is a few of the things that I do to make Linux good platform for Bible study, aside from using Bible Analyzer.

I wrote a function for my .bashrc file to perform lookups user text data lists, and dict server:

Code: Select all

lu ()
    # do a lu {word} and it will find a match and stop, lu by it self will go full screen to lookup lots of words
    [ $# -eq 0 ] && clear;
    while :; do
        if [ $# -eq 1 ]; then
            read -p "Word: " WORD;
        # wordlist.txt is a kjv dictionary, bible_names is just that -- see attachments
        grep --color -i "^$WORD" /home/mitch/Documents/faith/ref/wordlist.txt || grep --color -i "^   $WORD" /home/mitch/Documents/faith/ref/bible_names.txt;
        if [ "$ES" -gt 0 ]; then
            dict $WORD >> /tmp/$$.txt && vimpager /tmp/$$.txt;
            \rm /tmp/$$.txt;
        [ $# -eq 1 ] && break;

I also install 'bible-kjv' for a console based Bible (sudo apt get bible-kjv). This allows you to tie it into your editor. So in my .vimrc file I have the following:

Code: Select all

map <leader>b <ESC>:r !bible -f

This allows me to insert a verse into a document with a \b {ref}.

I hope this helps other Linux folks, there are not to many of us.

.\\itch - 2 Cor. 5:17 Therefore if any man be in Christ, he is a new creature: old things are passed away; behold, all things are become new.
(15.1 KiB) Downloaded 60 times
(36.91 KiB) Downloaded 65 times

Return to “Other Topics of Interest”

Who is online

Users browsing this forum: No registered users and 2 guests