dotfiles

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

commit 0c618ab80bd4f9f1faef30987e8242e37aadd3cb
parent 985a8c6e375f6b98a906f7ace8bf056375de09ec
Author: bharatvaj.ph <bharatvaj@yahoo.com>
Date:   Wed, 25 Aug 2021 03:50:53 +0530

Add plugin 'shorthand'

Add plugin 'nb'

Diffstat:
A.config/bash/plugin/nb | 9+++++++++
A.config/bash/plugin/shorthand | 7+++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/.config/bash/plugin/nb b/.config/bash/plugin/nb @@ -0,0 +1,9 @@ +# nb - notebook +NB_PATH="${XDG_DATA_HOME}/notes" + +nb() { + cd "${NB_PATH}" + file="$(fzf --preview='cat {}')" + [ "${file}" != "" ] && vim "${file}" +} + diff --git a/.config/bash/plugin/shorthand b/.config/bash/plugin/shorthand @@ -0,0 +1,7 @@ +# One letter bindings for important commands + +[ ! -z "${EDITOR}" ] && alias e=${EDITOR} + +which git >&/dev/null && alias g=git + +which pass >&/dev/null & alias p=pass