dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

commit ad460d6614f6246da4ea0bd148f6cb3f693a3f37
parent 887230bc703d43b98596b3a583a7fd69d6c9d5b9
Author: Bharatvaj H <bharatvaj@yahoo.com>
Date:   Thu,  5 Aug 2021 05:05:52 +0530

Basic implmentation of jrnl

Diffstat:
M.gitignore | 3+++
A.local/bin/jrnl | 7+++++++
A.local/bin/jrnl_sync | 5+++++
M.profile | 1+
4 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -14,3 +14,6 @@ # Config !.config/ +# Local shell scripts +!.local/bin/ +!.local/bin/* diff --git a/.local/bin/jrnl b/.local/bin/jrnl @@ -0,0 +1,7 @@ +#!/bin/sh + + jrnl_path="${XDG_DATA_HOME}/notes/content" + +# TODO if ranger is not found, cd into that dir +[ -d "${jrnl_path}" ] && ranger "${jrnl_path}" + diff --git a/.local/bin/jrnl_sync b/.local/bin/jrnl_sync @@ -0,0 +1,5 @@ +#!/bin/sh + + jrnl_path="${XDG_DATA_HOME}/notes" + +git --git-dir="${jrnl_path}/.git" add "${jrnl_path}/contents" && git --git-dir="${jrnl_path}/.git" commit "$(date)" diff --git a/.profile b/.profile @@ -30,3 +30,4 @@ export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc # Setup editor export VISUAL=vim export EDITOR="$VISUAL" +export PATH=${PATH}:~/.local/bin