Jump to content

Creating alias on command line [linux]

Recommended Posts

Trying to create an alias in the command line using the following


alias houdini_run='pathold=$PATH; PATH=/home/jim/yt-conda/bin:/home/jim/yt-conda/sbin:/opt/hfs17.0.352:/opt/hfs17.0.352/bin:/usr/bin:/usr/sbin/;/opt/hfs17.0.352:/opt/hfs17.0.352/bin/houdini-bin; PATH=$pathold'


Then when I enter 'houdini_run' I get the following error


bash: /opt/hfs17.0.352:/opt/hfs17.0.352/bin/houdini-bin: No such file or directory


However, if I navigate to the bin directory, and simply enter houdini-bin, I still get the 'No such file' error but the application correctly launches.

Can anyone tell me what is going on here?

Edited by art3mis

Share this post

Link to post
Share on other sites

You must source houdini_setup, then launch houdini.

houdini_run ()

  # edit these to suit your environment
  source houdini_setup

  # launch houdini
  houdini $@


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now