Installing JRNL
Updated on 2021-10-21 for Linux Mint 20.2
TL;DR
To install JRNL on Linux Mint 20.2, open up your Terminal, and type the following commands:
|
|
Add this to the top of your .bashrc
file: HISTIGNORE="$HISTIGNORE:jrnl *"
And to change the tool you use to edit entries, edit the .config/jrnl/jrnl.yaml
file:
Note: If the
jrnl.yaml
file does not exist, just create the file~/.config/jrnl/jrnl.yaml
, and you can copy the contents below to get started.
|
|
To edit entries with Neovim, change the line that starts with “editor” to this: editor: nvim -c startinsert
-or-
To edit entries with Sublime Text, change the line that starts with “editor” to this: editor: subl -w
The Rest of the Story
This is just a quick post about JRNL. JRNL is an open-source, terminal-based journaling application. I really like it due to the simplicity, so I'm giving it a try. Additionally, I really like the fact that you can encrypt your journal as well :-)
The official installation instructions can be found here. However, I had to take some additional steps, and wanted to document this in case others had similar issues.
So, to install JRNL on Linux Mint 20.2, open up your Terminal, and type the following commands:
|
|
Then to start your journal, just open up a Terminal, and type jrnl
.
The very first time, you will asked for the location of your journal.txt
. You can name the file whatever you like. You will also be asked if you want to encrypt your journal as well. All up to you.
|
|
More about JRNL can be found here, and the GitHub page can be found here.
Bonus
You are also going to want to add this to your .bashrc
file:
|
|
Just add this at the top: HISTIGNORE="$HISTIGNORE:jrnl *"
This will prevent any JNRL entries for being added to your history file.
Bonus++
I like to edit entries with Neovim, and with a simple config file setting, you can do that with JRNL:
Note: If the
jrnl.yaml
file does not exist, just create the file~/.config/jrnl/jrnl.yaml
, and you can copy the contents below to get started.
|
|
Change the line that starts with “editor” to this: editor: nvim -c startinsert
|
|
More information on the jrnl.yaml
config file can be found here.
Conclusion
So that is how you can get started with JRNL, and to begin journaling your day.
Hope this was helpful :-) Feel free to leave comments, or questions below.
End of Line.