diff options
author | Matthew Lemon <y@yulqen.org> | 2023-03-30 09:48:37 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-03-30 09:48:37 +0100 |
commit | efff4d15d6f1551eb412415179bfaed08618a018 (patch) | |
tree | 46b95b08e56983c25d69a8722812cdbc3456c7b8 /bashrc | |
parent | 6f7c08bbc04c8136a7f2f4f6a2127731cec348da (diff) |
added todj to bash
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -8,6 +8,8 @@ export HISTCONTROL=ignoreboth # echo "output" >| file.txt to do it manually set -o noclobber +# Setting PATH +export PATH=~/bin/:$PATH # aliases alias xclip='xclip -selection c' @@ -37,3 +39,13 @@ export FZF_DEFAULT_OPTS="--color info:108,prompt:109,spinner:108,pointer:168,mar export=GPG_TTY="$(tty)" export=SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" gpgconf --launch gpg-agent + +# Functions +todj () { + if [[ "$1" = "-v" ]]; then + CMD=vim + else + CMD=cat + fi + $CMD $(find /home/lemon/Documents/Notes/journal -name "*$(date '+%Y-%m-%d')*") +} |