Linux tips and tricks for geeky Christians

Topics of Interest other than Bible Analyzer
Post Reply
mitch_j
Posts: 15
Joined: Tue Mar 27, 2018 5:50 am

Linux tips and tricks for geeky Christians

Post by mitch_j »

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
            WORD=$1;
        else
            read -p "Word: " WORD;
        fi;
        # 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;
        ES=$?;
        if [ "$ES" -gt 0 ]; then
            dict $WORD >> /tmp/$$.txt && vimpager /tmp/$$.txt; 
            \rm /tmp/$$.txt;
        fi;
        [ $# -eq 1 ] && break;
    done
}
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.
Attachments
wordlist.txt.zip
(15.1 KiB) Downloaded 2021 times
bible_names.txt.zip
(36.91 KiB) Downloaded 2126 times

Post Reply