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
|
||||
|
||||
_Complete()
|
||||
_configure_Complete()
|
||||
{
|
||||
local cur
|
||||
|
||||
@ -31,5 +31,5 @@ _Complete()
|
||||
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
|
||||
# Replace ':' by spaces
|
||||
for arg in $@ ; do
|
||||
if [[ $arg =~ -* ]] ; then
|
||||
_ARGS+=("\"${arg//:/ }\"")
|
||||
else
|
||||
_ARGS+=("${arg}")
|
||||
fi
|
||||
case $arg in
|
||||
-*)
|
||||
_ARGS+=("${arg}") ;;
|
||||
*)
|
||||
_ARGS+=("\"${arg//:/ }\"") ;;
|
||||
esac
|
||||
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
|
||||
[[ -d $EZFIO_FILE ]] && ezfio unset_file
|
||||
ezfio set_file $NAME
|
||||
@ -144,7 +146,7 @@ function _get_basis_sets () {
|
||||
|
||||
|
||||
|
||||
_Complete()
|
||||
_qp_Complete()
|
||||
{
|
||||
local cur
|
||||
|
||||
@ -258,7 +260,7 @@ _Complete()
|
||||
return 0
|
||||
;;
|
||||
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
|
||||
;;
|
||||
edit)
|
||||
@ -278,7 +280,7 @@ _Complete()
|
||||
|
||||
case "${prev}" in
|
||||
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
|
||||
;;
|
||||
*)
|
||||
@ -290,4 +292,4 @@ _Complete()
|
||||
fi
|
||||
}
|
||||
|
||||
complete -F _Complete qp
|
||||
complete -F _qp_Complete qp
|
||||
|
Loading…
Reference in New Issue
Block a user