mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 06:03:10 +00:00
21c3eaf500
Fiexed the shell detection logic by not trying to. Changed the install_user script to just print the add TRICK_HOME to the PATH for both types of shells. Fixes #9
17 lines
475 B
Perl
Executable File
17 lines
475 B
Perl
Executable File
#! /usr/bin/perl
|
|
# install_user tells users to add Trick's bin to their path.
|
|
|
|
# $Id: install_user 3792 2015-02-03 21:51:57Z alin $
|
|
use File::Basename ;
|
|
use Cwd 'abs_path';
|
|
|
|
$trick_bin = dirname(abs_path($0)) ;
|
|
$trick_home = dirname($trick_bin) ;
|
|
|
|
print "if you use bash add this line to your .bashrc\n" ;
|
|
print "export PATH=\"\${PATH}:$trick_home/bin\"\n\n" ;
|
|
|
|
print "if you use [t]csh add this line to your .cshrc\n" ;
|
|
print "setenv PATH \"\${PATH}:$trick_home/bin\"\n" ;
|
|
|