commit acc36b265cb91e25813098136498454787581eb2
parent 0c618ab80bd4f9f1faef30987e8242e37aadd3cb
Author: bharatvaj.ph <bharatvaj@yahoo.com>
Date: Wed, 25 Aug 2021 09:32:07 +0530
Setup taskwarrior
Diffstat:
4 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/.bash_profile b/.bash_profile
@@ -4,7 +4,7 @@
set -o vi
[ -f ~/.profile ] && . ~/.profile
-[ -f ~/.personal/config ] && . ~/.personal/config
+[ -f "${XDG_DATA_HOME}/personal/config" ] && . "${XDG_DATA_HOME}/personal/config"
[ -f "${XDG_CONFIG_HOME}/bash/bashrc" ] && . "${XDG_CONFIG_HOME}"/bash/bashrc
# Zoho
diff --git a/.config/vim/vimrc b/.config/vim/vimrc
@@ -75,6 +75,7 @@ call plug#begin($XDG_DATA_HOME."/vim/plugged")
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
+ Plug 'itchyny/lightline.vim'
call plug#end()
" Plugin customizations
diff --git a/.local/bin/jrnl b/.local/bin/jrnl
@@ -1,7 +1,11 @@
#!/bin/sh
- jrnl_path="${XDG_DATA_HOME}/notes/content"
+ jrnl_path="${XDG_DATA_HOME}/notes"
-# TODO if ranger is not found, cd into that dir
-[ -d "${jrnl_path}" ] && ranger "${jrnl_path}"
+if [ -d "${jrnl_path}" ]; then
+ ranger "${jrnl_path}"
+else
+ cd "${jrnl_path}"
+ vim "$(fzf --preview 'cat {}')"
+fi
diff --git a/.profile b/.profile
@@ -17,8 +17,7 @@ export PSQL_HISTORY="$XDG_CACHE_HOME/pg/psql_history"
export PGPASSFILE="$XDG_CONFIG_HOME/pg/pgpass"
export PGSERVICEFILE="$XDG_CONFIG_HOME/pg/pg_service.conf"
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
-export TASKRC="${XDG_CONFIG_HOME}/task/taskrc"
-export TASKDATA="${XDG_DATA_HOME}/task"
+export TASKRC="$XDG_CONFIG_HOME/task/taskrc"
export HISTFILE="$XDG_DATA_HOME"/bash/history
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc