mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-19 22:41:48 +02:00
Fixed qp command
This commit is contained in:
parent
0bfc60ee93
commit
6f35f634de
@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user