diff --git a/config/fish/functions/atest.fish b/config/fish/functions/atest.fish new file mode 100644 index 0000000..baa6680 --- /dev/null +++ b/config/fish/functions/atest.fish @@ -0,0 +1,7 @@ +function atest + set a_test (echo $argv | sed -e 's/\//\./g' | sed -e 's/.py//g') + set a_project (echo -n $a_test | python -c "import sys; print sys.stdin.read().split('.', 1)[0]"); + set run_test (echo "bin/manage_"$a_project".py test "$a_test) + echo $run_test + eval $run_test +end