dotfiles

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

commit 985a8c6e375f6b98a906f7ace8bf056375de09ec
parent efd756e426497f2672fba66e3155ae148ac3c2c5
Author: bharatvaj.ph <bharatvaj@yahoo.com>
Date:   Mon, 23 Aug 2021 06:07:22 +0530

Merge branch 'termux' of github.com:bharatvaj/dotfiles into bharat-9052

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

diff --git a/.config/vim/vimrc b/.config/vim/vimrc @@ -30,6 +30,10 @@ set mouse=a syntax on set exrc +" Map leader to space +nnoremap <SPACE> <Nop> +let mapleader = " " + " Disable auto fixing end of line " Useful when opening binary files set nofixendofline 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,6 @@ export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc # Setup editor export VISUAL=vim export EDITOR="$VISUAL" + +# Local executables +export PATH=${PATH}:~/.local/bin