10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-02 11:25:26 +02:00

Merge github.com:scemama/quantum_package into toto

This commit is contained in:
Emmanuel Giner 2019-01-16 15:17:47 +01:00
commit 4748f906b2

View File

@ -39,13 +39,14 @@ function qp()
{ {
case $1 in case $1 in
"set_file") "set_file")
if [[ -d ${EZFIO_FILE} ]] ; then if [[ -d ${2} ]] ; then
ezfio "$@" ezfio "$@"
else else
>&2 echo "qp: ${EZFIO_FILE} not found" >&2 echo "qp: ${2} not found"
fi;; fi;;
"has"|"set"|"get"|"unset_file") "has"|"set"|"get"|"unset_file")
ezfio "$@"
;; ;;
"set_frozen_core") "set_frozen_core")
@ -287,7 +288,7 @@ _qp_Complete()
case "${prev}" in case "${prev}" in
set_file) set_file)
COMPREPLY=( $(compgen -W "$(for i in ./* ; do [[ -f ${i}/ezfio/.version ]] && echo $i ; done)" -- ${cur} ) ) COMPREPLY=( $(compgen -W "$(for i in * ; do [[ -f ${i}/ezfio/.version ]] && echo $i ; done)" -- ${cur} ) )
return 0 return 0
;; ;;
*) *)