Skip to content

Instantly share code, notes, and snippets.

@aerith
Created October 31, 2010 10:04
Show Gist options
  • Save aerith/656379 to your computer and use it in GitHub Desktop.
Save aerith/656379 to your computer and use it in GitHub Desktop.
#!/bin/sh
perlbin=`which perl`
phpbin=`which php`
rubybin=`which ruby`
pythonbin=`which python`
if [ -x $perlbin ]; then
echo -n "==================================================\n"
echo "Perl Paths"
echo -n "==================================================\n"
$perlbin -e 'print join "\n", @INC';
echo -n "\n"
fi;
if [ -x $phpbin ]; then
echo -n "==================================================\n"
echo "PHP Paths"
echo -n "==================================================\n"
$phpbin -r 'print implode("\n", explode(PATH_SEPARATOR, get_include_path()));';
echo -n "\n"
fi;
if [ -x $rubybin ]; then
echo -n "==================================================\n"
echo "Ruby Paths"
echo -n "==================================================\n"
$rubybin -e 'print $:.join("\n")';
echo -n "\n"
fi;
if [ -x $pythonbin ]; then
echo -n "==================================================\n"
echo "Python Paths"
echo -n "==================================================\n"
$pythonbin -c 'import sys; print "\n".join(sys.path)';
echo -n "\n"
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment