Hex Artifact Content
Not logged in

Artifact a3bcc6073b811a48a765de434442834a1e173edd:

Wiki page [Auto-completion] by anonymous on 2008-02-10 17:17:18.

0000: 44 20 32 30 30 38 2d 30 32 2d 31 30 54 31 37 3a  D 2008-02-10T17:
0010: 31 37 3a 31 38 0a 4c 20 41 75 74 6f 2d 63 6f 6d  17:18.L Auto-com
0020: 70 6c 65 74 69 6f 6e 0a 50 20 65 30 32 66 33 36  pletion.P e02f36
0030: 35 32 62 38 30 39 61 62 34 35 62 62 62 38 35 34  52b809ab45bbb854
0040: 62 66 38 37 62 61 30 37 65 64 35 34 32 65 31 32  bf87ba07ed542e12
0050: 64 39 0a 55 20 61 6e 6f 6e 79 6d 6f 75 73 0a 57  d9.U anonymous.W
0060: 20 31 37 32 34 0a 5b 4d 53 5d 20 41 74 20 6c 65   1724.[MS] At le
0070: 61 73 74 20 6f 6e 20 6d 79 20 73 79 73 74 65 6d  ast on my system
0080: 20 28 75 62 75 6e 74 75 29 20 6d 61 6e 79 20 70   (ubuntu) many p
0090: 72 6f 67 72 61 6d 73 20 66 65 61 74 75 72 65 20  rograms feature 
00a0: 61 75 74 6f 2d 63 6f 6d 70 6c 65 74 69 6f 6e 20  auto-completion 
00b0: 6f 66 20 73 75 62 63 6f 6d 6d 61 6e 64 73 3b 20  of subcommands; 
00c0: 69 74 20 69 73 20 76 65 72 79 20 75 73 65 66 75  it is very usefu
00d0: 6c 2e 20 46 6f 73 73 69 6c 20 64 6f 65 73 20 6e  l. Fossil does n
00e0: 6f 74 2c 20 73 76 6e 20 61 6e 64 20 63 76 73 20  ot, svn and cvs 
00f0: 64 6f 2e 0d 0a 0d 0a 4d 79 20 67 75 65 73 73 20  do.....My guess 
0100: 69 73 20 74 68 61 74 20 74 68 65 20 66 65 61 74  is that the feat
0110: 75 72 65 20 69 73 20 65 6e 61 62 6c 65 64 20 62  ure is enabled b
0120: 79 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20  y the following 
0130: 65 6e 74 72 79 20 69 6e 20 2e 62 61 73 68 72 63  entry in .bashrc
0140: 3a 0d 0a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d  :....<verbatim>.
0150: 0a 23 20 65 6e 61 62 6c 65 20 70 72 6f 67 72 61  .# enable progra
0160: 6d 6d 61 62 6c 65 20 63 6f 6d 70 6c 65 74 69 6f  mmable completio
0170: 6e 20 66 65 61 74 75 72 65 73 20 28 79 6f 75 20  n features (you 
0180: 64 6f 6e 27 74 20 6e 65 65 64 20 74 6f 20 65 6e  don't need to en
0190: 61 62 6c 65 0d 0a 23 20 74 68 69 73 2c 20 69 66  able..# this, if
01a0: 20 69 74 27 73 20 61 6c 72 65 61 64 79 20 65 6e   it's already en
01b0: 61 62 6c 65 64 20 69 6e 20 2f 65 74 63 2f 62 61  abled in /etc/ba
01c0: 73 68 2e 62 61 73 68 72 63 20 61 6e 64 20 2f 65  sh.bashrc and /e
01d0: 74 63 2f 70 72 6f 66 69 6c 65 0d 0a 23 20 73 6f  tc/profile..# so
01e0: 75 72 63 65 73 20 2f 65 74 63 2f 62 61 73 68 2e  urces /etc/bash.
01f0: 62 61 73 68 72 63 29 2e 0d 0a 69 66 20 5b 20 2d  bashrc)...if [ -
0200: 66 20 2f 65 74 63 2f 62 61 73 68 5f 63 6f 6d 70  f /etc/bash_comp
0210: 6c 65 74 69 6f 6e 20 5d 3b 20 74 68 65 6e 0d 0a  letion ]; then..
0220: 20 20 20 20 2e 20 2f 65 74 63 2f 62 61 73 68 5f      . /etc/bash_
0230: 63 6f 6d 70 6c 65 74 69 6f 6e 0d 0a 66 69 0d 0a  completion..fi..
0240: 3c 2f 76 65 72 62 61 74 69 6d 3e 0d 0a 0d 0a 49  </verbatim>....I
0250: 74 20 77 6f 75 6c 64 20 62 65 20 6e 69 63 65 20  t would be nice 
0260: 69 66 20 77 65 20 63 6f 75 6c 64 20 64 65 76 65  if we could deve
0270: 6c 6f 70 20 61 6e 64 20 6d 61 69 6e 74 61 69 6e  lop and maintain
0280: 20 61 20 66 69 6c 65 20 74 68 61 74 20 77 6f 75   a file that wou
0290: 6c 64 20 65 6e 61 62 6c 65 20 74 68 69 73 20 66  ld enable this f
02a0: 6f 72 20 66 6f 73 73 69 6c 20 77 68 65 6e 20 63  or fossil when c
02b0: 6f 70 69 65 64 20 74 6f 20 2f 65 74 63 2f 62 61  opied to /etc/ba
02c0: 73 68 5f 63 6f 6d 70 6c 65 74 69 6f 6e 2e 64 20  sh_completion.d 
02d0: 28 73 79 73 74 65 6d 20 77 69 64 65 29 20 6f 72  (system wide) or
02e0: 20 73 6f 75 72 63 65 64 20 69 6e 20 2e 62 61 73   sourced in .bas
02f0: 68 72 63 2e 20 49 20 64 6f 20 6e 6f 74 20 6b 6e  hrc. I do not kn
0300: 6f 77 20 69 66 20 74 68 69 73 20 63 61 6e 20 62  ow if this can b
0310: 65 20 6d 61 64 65 20 69 6e 20 61 20 70 6f 72 74  e made in a port
0320: 61 62 6c 65 20 28 6f 72 20 61 74 20 6c 65 61 73  able (or at leas
0330: 74 20 61 75 74 6f 6d 61 74 65 64 29 20 6d 61 6e  t automated) man
0340: 6e 65 72 20 61 74 20 61 6c 6c 2e 0d 0a 0d 0a 57  ner at all.....W
0350: 6f 75 6c 64 20 61 74 74 61 63 68 20 74 68 65 20  ould attach the 
0360: 2f 65 74 63 2f 62 61 73 68 5f 63 6f 6d 70 6c 65  /etc/bash_comple
0370: 74 69 6f 6e 2e 64 2f 73 75 62 76 65 72 73 69 6f  tion.d/subversio
0380: 6e 20 66 69 6c 65 20 61 73 20 65 78 61 6d 70 6c  n file as exampl
0390: 65 2c 20 62 75 74 20 63 61 6e 27 74 20 2d 20 61  e, but can't - a
03a0: 6e 64 20 69 74 27 73 20 61 20 62 69 74 20 74 6f  nd it's a bit to
03b0: 6f 20 6c 6f 6e 67 20 74 6f 20 69 6e 63 6c 75 64  o long to includ
03c0: 65 20 68 65 72 65 0d 0a 0d 0a 0a 3c 68 72 3e 0a  e here.....<hr>.
03d0: 0a 0a 3c 68 72 3e 3c 69 3e 4f 6e 20 32 30 30 38  ..<hr><i>On 2008
03e0: 2d 30 32 2d 31 30 20 31 37 3a 31 37 3a 31 38 20  -02-10 17:17:18 
03f0: 55 54 43 20 61 6e 6f 6e 79 6d 6f 75 73 20 61 64  UTC anonymous ad
0400: 64 65 64 3a 3c 2f 69 3e 3c 62 72 20 2f 3e 0a 46  ded:</i><br />.F
0410: 6f 73 73 69 6c 20 6f 6e 6c 79 20 6e 65 65 64 73  ossil only needs
0420: 20 65 6e 6f 75 67 68 20 6f 66 20 61 20 63 6f 6d   enough of a com
0430: 6d 61 6e 64 20 74 6f 20 6d 61 6b 65 20 69 74 20  mand to make it 
0440: 75 6e 69 71 75 65 2c 20 65 2e 67 2e 0d 0a 0d 0a  unique, e.g.....
0450: 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 65 72 69 63  <verbatim>..eric
0460: 40 74 61 73 73 6f 3a 7e 24 20 66 6f 73 73 69 6c  @tasso:~$ fossil
0470: 20 68 0d 0a 66 6f 73 73 69 6c 3a 20 61 6d 62 69   h..fossil: ambi
0480: 67 75 6f 75 73 20 63 6f 6d 6d 61 6e 64 20 70 72  guous command pr
0490: 65 66 69 78 3a 20 68 0d 0a 66 6f 73 73 69 6c 3a  efix: h..fossil:
04a0: 20 75 73 65 20 22 68 65 6c 70 22 20 66 6f 72 20   use "help" for 
04b0: 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 74 69 6f 6e  more information
04c0: 0d 0a 65 72 69 63 40 74 61 73 73 6f 3a 7e 24 20  ..eric@tasso:~$ 
04d0: 66 6f 73 73 69 6c 20 68 65 0d 0a 55 73 61 67 65  fossil he..Usage
04e0: 3a 20 66 6f 73 73 69 6c 20 68 65 6c 70 20 43 4f  : fossil help CO
04f0: 4d 4d 41 4e 44 2e 0d 0a 41 76 61 69 6c 61 62 6c  MMAND...Availabl
0500: 65 20 43 4f 4d 4d 41 4e 44 73 3a 0d 0a 61 64 64  e COMMANDs:..add
0510: 20 20 20 20 20 20 20 20 20 20 63 6c 6f 73 65 20            close 
0520: 20 20 20 20 20 20 20 67 64 69 66 66 20 20 20 20         gdiff    
0530: 20 20 20 20 6e 65 77 20 20 20 20 20 20 20 20 20      new         
0540: 20 72 65 76 65 72 74 20 20 20 20 20 20 20 74 69   revert       ti
0550: 6d 65 6c 69 6e 65 0d 0a 62 72 61 6e 63 68 20 20  meline..branch  
0560: 20 20 20 20 20 63 6f 6d 6d 69 74 20 20 20 20 20       commit     
0570: 20 20 68 65 6c 70 20 20 20 20 20 20 20 20 20 6f    help         o
0580: 70 65 6e 20 20 20 20 20 20 20 20 20 72 6d 20 20  pen         rm  
0590: 20 20 20 20 20 20 20 20 20 75 6e 64 6f 0d 0a 63           undo..c
05a0: 67 69 20 20 20 20 20 20 20 20 20 20 64 65 63 6f  gi          deco
05b0: 6e 73 74 72 75 63 74 20 20 68 74 74 70 20 20 20  nstruct  http   
05c0: 20 20 20 20 20 20 70 75 6c 6c 20 20 20 20 20 20        pull      
05d0: 20 20 20 73 65 72 76 65 72 20 20 20 20 20 20 20     server       
05e0: 75 70 64 61 74 65 0d 0a 63 68 61 6e 67 65 73 20  update..changes 
05f0: 20 20 20 20 20 64 65 6c 20 20 20 20 20 20 20 20       del        
0600: 20 20 69 6e 66 6f 20 20 20 20 20 20 20 20 20 70    info         p
0610: 75 73 68 20 20 20 20 20 20 20 20 20 73 65 74 74  ush         sett
0620: 69 6e 67 73 20 20 20 20 20 75 73 65 72 0d 0a 63  ings     user..c
0630: 68 65 63 6b 6f 75 74 20 20 20 20 20 64 65 73 63  heckout     desc
0640: 65 6e 64 65 6e 74 73 20 20 6c 65 61 76 65 73 20  endents  leaves 
0650: 20 20 20 20 20 20 72 65 62 75 69 6c 64 20 20 20        rebuild   
0660: 20 20 20 73 74 61 74 75 73 0d 0a 63 6c 65 61 6e     status..clean
0670: 20 20 20 20 20 20 20 20 64 69 66 66 20 20 20 20          diff    
0680: 20 20 20 20 20 6c 73 20 20 20 20 20 20 20 20 20       ls         
0690: 20 20 72 65 63 6f 6e 73 74 72 75 63 74 20 20 73    reconstruct  s
06a0: 79 6e 63 0d 0a 63 6c 6f 6e 65 20 20 20 20 20 20  ync..clone      
06b0: 20 20 65 78 74 72 61 20 20 20 20 20 20 20 20 6d    extra        m
06c0: 65 72 67 65 20 20 20 20 20 20 20 20 72 65 64 6f  erge        redo
06d0: 20 20 20 20 20 20 20 20 20 74 61 67 0d 0a 54 68           tag..Th
06e0: 69 73 20 69 73 20 66 6f 73 73 69 6c 20 76 65 72  is is fossil ver
06f0: 73 69 6f 6e 20 5b 65 34 38 37 62 37 37 62 31 61  sion [e487b77b1a
0700: 5d 20 32 30 30 38 2d 30 32 2d 30 34 20 30 32 3a  ] 2008-02-04 02:
0710: 34 35 3a 35 35 0d 0a 3c 2f 76 65 72 62 61 74 69  45:55..</verbati
0720: 6d 3e 0a 5a 20 62 36 30 37 38 64 66 31 36 33 39  m>.Z b6078df1639
0730: 31 37 64 66 39 32 38 33 39 30 35 39 33 37 38 64  17df92839059378d
0740: 36 35 63 32 39 0a                                65c29.