IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31068


Ignore:
Timestamp:
Mar 28, 2011, 8:36:11 AM (15 years ago)
Author:
Paul Price
Message:

aliases in tcsh are better done using functions in bash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/psbuild

    r30601 r31068  
    409409
    410410    print STDOUT "** if you use sh, bash or equivalent as your shell, add the following to your .bashrc\n";
    411     print STDOUT "    if [ -f $psconfdir/psconfig.csh ]; then\n";
    412     print STDOUT "      alias psconfig='source $psconfdir/psconfig.bash'\n";
    413     print STDOUT "    else\n";
    414     print STDOUT "      alias psconfig='echo psconfig not available'\n";
    415     print STDOUT "    fi\n";
    416     print STDOUT "    source $psconfdir/psconfig.bash default\n";
     411    print STDOUT "    if [ -e $psconfdir/psconfig.bash ] ; then";
     412    print STDOUT "        psconfig () {";
     413    print STDOUT "            source $psconfdir/psconfig.bash";
     414    print STDOUT "        }";
     415    print STDOUT "    else";
     416    print STDOUT "        psconfig () {";
     417    print STDOUT "            echo psconfig not available";
     418    print STDOUT "        }";
     419    print STDOUT "    fi";
     420    print STDOUT "    psconfig default\n";
    417421    print STDOUT "\n";
    418422
Note: See TracChangeset for help on using the changeset viewer.