10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-21 11:53:32 +01:00

Updated irpman

This commit is contained in:
Anthony Scemama 2015-06-03 23:29:08 +02:00
parent c63d209b92
commit c95acf33e4

View File

@ -27,7 +27,16 @@
# Define auto-completion for bash
case "$0" in
*bash*)
*irpman)
if [[ -z $1 ]] ; then
echo "To activate auto-completion in bash:"
echo "source " $0
else
exec python $(dirname $0)/../src/irpman.py $1
fi
;;
*)
_irpman_complete()
{
local cur
@ -37,12 +46,4 @@ case "$0" in
} && complete -F _irpman_complete irpman
;;
*)
if [[ -z $1 ]] ; then
echo "To activate auto-completion in bash:"
echo "source " $0
else
python $(dirname $0)/../src/irpman.py $1
fi
;;
esac