|
@@ -6,9 +6,15 @@ if [[ $# -eq 0 ]] ; then
|
|
|
fi
|
|
|
|
|
|
function list-utilities () {
|
|
|
- for utility in ~/.ledger/utilities/*.sh ;
|
|
|
+ for utility in ~/.ledger/utilities/*.(sh|pl) ;
|
|
|
do
|
|
|
- echo " - $(basename -- ${utility} .sh)"
|
|
|
+ case $utility in
|
|
|
+ *.sh)
|
|
|
+ echo " - $(basename -- ${utility} .sh)"
|
|
|
+ ;;
|
|
|
+ *.pl)
|
|
|
+ echo " - $(basename -- ${utility} .pl)"
|
|
|
+ esac
|
|
|
done
|
|
|
}
|
|
|
|