added version numbers

This commit is contained in:
Ville Rantanen
2015-10-13 09:56:37 +03:00
parent d959fd3ff6
commit 9e9fc69571

View File

@@ -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.