#!/bin/bash echo "here" set -e echo "here" TEST_DIR=$( python -c "from os.path import realpath print realpath(\"$(dirname "$0")\")" ) # resolve symlinks echo "here" echo cd "$TEST_DIR" cd "$TEST_DIR" gcc -g -o ab ab.c nvim -c 'e term://python\ -i\ test.py'