On Tue, Oct 02, 2018 at 09:02:26AM -0700, B. Lachele Foley wrote:

[...]
> PS:  The following didn't work for us.  We tested with a "hello-world"-type 
> script:  
> 
> "Note that on *nix systems installing such a script program is as easy as 
> dropping it under any directory on the user's $PATH - so that if you put 
> a file named "foo" under, say, /usr/local/bin, then running `git foo` 
> will make the Git front-end program to find that /usr/local/bin/foo and 
> execute it. "

Sorry for confusion: the script should be named after the "git-<whatever>"
pattern in order for it to work as the `git whatever` command:

  ~$ echo $PATH
  /home/kostix/bin:/usr/local/bin:/usr/bin:/bin
  ~$ cat >${PATH%%:*}/git-hello
  #!/bin/sh
  echo hello
  ~$ chmod +x ${PATH%%:*}/git-hello
  ~$ git hello
  hello
  ~$ 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to