aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 3db0574..172462c 100644
--- a/bashrc
+++ b/bashrc
@@ -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')*")
+}