mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-19 22:41:48 +02:00
Fixed travis
This commit is contained in:
parent
fedca82f17
commit
e910a19972
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
source ${QP_ROOT}/etc/autocomplete.rc
|
source ${QP_ROOT}/etc/autocomplete.rc
|
||||||
|
|
||||||
_Complete()
|
_configure_Complete()
|
||||||
{
|
{
|
||||||
local cur
|
local cur
|
||||||
|
|
||||||
@ -31,5 +31,5 @@ _Complete()
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _Complete configure
|
complete -F _configure_Complete configure
|
||||||
|
|
||||||
|
22
etc/qp.rc
22
etc/qp.rc
@ -51,13 +51,15 @@ function qp()
|
|||||||
shift
|
shift
|
||||||
# Replace ':' by spaces
|
# Replace ':' by spaces
|
||||||
for arg in $@ ; do
|
for arg in $@ ; do
|
||||||
if [[ $arg =~ -* ]] ; then
|
case $arg in
|
||||||
_ARGS+=("\"${arg//:/ }\"")
|
-*)
|
||||||
else
|
_ARGS+=("${arg}") ;;
|
||||||
_ARGS+=("${arg}")
|
*)
|
||||||
fi
|
_ARGS+=("\"${arg//:/ }\"") ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
NAME=$(eval "qp_create_ezfio_from_xyz ${_ARGS}")
|
echo "qp_create_ezfio_from_xyz ${_ARGS[@]}"
|
||||||
|
NAME=$(eval "qp_create_ezfio_from_xyz ${_ARGS[@]}")
|
||||||
if [[ -d $NAME ]] ; then
|
if [[ -d $NAME ]] ; then
|
||||||
[[ -d $EZFIO_FILE ]] && ezfio unset_file
|
[[ -d $EZFIO_FILE ]] && ezfio unset_file
|
||||||
ezfio set_file $NAME
|
ezfio set_file $NAME
|
||||||
@ -144,7 +146,7 @@ function _get_basis_sets () {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
_Complete()
|
_qp_Complete()
|
||||||
{
|
{
|
||||||
local cur
|
local cur
|
||||||
|
|
||||||
@ -258,7 +260,7 @@ _Complete()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
set|has|get)
|
set|has|get)
|
||||||
COMPREPLY=( $(compgen -W "$(cd ${EZFIO_FILE} ; \ls -d */ | sed 's|/||g')" -- $cur ) )
|
COMPREPLY=( $(compgen -d "$(cd ${EZFIO_FILE} ; \ls -d */ | sed 's|/||g')" -- $cur ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
edit)
|
edit)
|
||||||
@ -278,7 +280,7 @@ _Complete()
|
|||||||
|
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
set_file)
|
set_file)
|
||||||
COMPREPLY=( $(compgen -W "$(\ls -d */ | sed 's|/||g')" -- ${cur} ) )
|
COMPREPLY=( $(compgen -W "$(for i in ./* ; do [[ -f ${i}/ezfio/.version ]] && echo $i ; done)" -- ${cur} ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -290,4 +292,4 @@ _Complete()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _Complete qp
|
complete -F _qp_Complete qp
|
||||||
|
Loading…
Reference in New Issue
Block a user