home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3761 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1011 b   |  35 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!ira.uka.de!News.BelWue.DE!news.uni-tuebingen.de!nova!gaier
  3. From: gaier@nova.tat.physik.uni-tuebingen.de (Karsten Gaier)
  4. Subject: TCSH: completions for talk ?
  5. Message-ID: <gaier.715356277@nova>
  6. Keywords: tcsh, completions
  7. Sender: news@softserv.zdv.uni-tuebingen.de (News Operator)
  8. Organization: TAT (Theoretical Astrophysics Tuebingen), U. of Tuebingen, FRG
  9. Date: Tue, 1 Sep 1992 14:04:37 GMT
  10. Lines: 23
  11.  
  12. Hi, 
  13.  
  14. are there more intelligent completions for talk possible ?
  15. I want something like:
  16.  
  17.      > talk @[TAB]
  18.      ws1 ws2 ws3 ws4 
  19.      > talk @ws3
  20.      > talk @ws3[TAB]
  21.      user1 user2 user3 user4
  22.      > talk user1@ws3
  23.  
  24. One problem is, that when i manage to get the workstations, i don't
  25. get the users. I use something like:
  26.  
  27.     complete talk \
  28.     c/@/\$hosts/ \
  29.     c/@*/\`finger\ \$:1\ \|\ awk\ \'\{print\ \$1\ \}\'\ \|\ sort\ -u\ \`/ \
  30.     p/1/\`finger\ \$:1\ \|\ awk\ \'\{print\ \$1\ \}\'\ \|\ sort\ -u\ \`/ \
  31.  
  32. any hints ?
  33.  
  34. ciao, Karsten
  35.