From 9e9fc695713a707d061310f3544c87fb9bc8cfa6 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Tue, 13 Oct 2015 09:56:37 +0300 Subject: [PATCH] added version numbers --- qcd_function | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcd_function b/qcd_function index afcbb5c..f18180c 100644 --- a/qcd_function +++ b/qcd_function @@ -36,7 +36,8 @@ function qcd() { local opt local case local d - + [ -e ~/.qcd ] || touch ~/.qcd + [ -e ~/.bash_cdhistory ] || touch ~/.bash_cdhistory while getopts ae:hiILl:m opt do case "$opt" in a) @@ -116,6 +117,7 @@ complete -F _qcd qcd ;; h) echo 'qcd [-hiLm]|[-al] [name] +Version: 2015-10-13 Change current working path based on the list ~/.qcd Keeps a history of folders visited in ~/.bash_cdhistory @@ -154,6 +156,7 @@ Keeps a history of folders visited in ~/.bash_cdhistory } function whenfilechanges() { + echo "Version: 2015-10-13" [ -z "$2" ] && { echo 'Usage: whenfilechanges "file" "some" "command" Follows the modification time of the "file" and runs the command at every change.