formatted conda completion and used helper function
parent
dd09dc5a58
commit
6e9fa193b7
|
|
@ -1,4 +1,12 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
which register-python-argcomplete > /dev/null \
|
|
||||||
&& eval "$(register-python-argcomplete conda)" \
|
if _command_exists conda
|
||||||
|| echo "Please install argcomplete to use conda completion"
|
then
|
||||||
|
if _command_exists register-python-argcomplete
|
||||||
|
then
|
||||||
|
eval "$(register-python-argcomplete conda)"
|
||||||
|
else
|
||||||
|
_log_warning "Argcomplete not found. Please run 'conda install argcomplete'"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue