home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1998 #11 / PCDIREKT_1198.bin / data / Util / ntsh / ALIASES.CFG next >
Encoding:
Text File  |  1997-10-15  |  1.4 KB  |  60 lines

  1. #     _________________________________
  2. #    (o global aliases
  3.  
  4.  
  5. # everything after a '#' is ignored
  6.  
  7. # first word of each line is the alias to define.
  8. # when an alias is executed, the command will be
  9. # replaced with everything following the alias
  10. # definition in this file.
  11. # %0..%9, %0*..%9*, %* will be replaced by the
  12. # parameters entered on the command line
  13. # (with an *, all following params are added, too)
  14. # if no '%' is present in this alias definition,
  15. # then %* will be added automatically.
  16.  
  17. # NOTE:
  18. # everything that should be expanded when
  19. # using the alias should be escaped with '...'
  20. # this way it is not expanded when reading
  21. # the aliases from this file
  22.  
  23. # users can define their own
  24. # aliases in their ~/.aliases.cfg
  25.  
  26. # some shortcuts
  27. @ 'setenv'
  28. ! 'not'
  29. cd.. 'cd ..'
  30. j 'jobs'
  31. ls '::ls -F'            # add '/' to dirs, '*' to exes
  32. ll 'ls -l'                # list long
  33. LL 'ls -L'                # very long
  34. la 'ls -la'                # list all
  35. LA 'ls -La'
  36.  
  37. clear 'echo $e[0m$e[J'    # clear screen
  38. man '%1 -h'                # manual
  39. pwd 'echo $P'            # print working dir
  40.  
  41. # as the internal commands are not that good in this release
  42. # you can use the standard dos commands like this:
  43. cp '$(ComSpec) /ccopy /b'
  44. mv '$(ComSpec) /cmove'
  45. rm '$(ComSpec) /cdel /q'
  46.  
  47. # define DOS commands
  48. cls 'clear'
  49. copy 'cp'
  50. date 'echo $D'
  51. del 'rm'
  52. dir 'll -t'
  53. move 'mv'
  54. prompt 'setenv PROMPT'
  55. path 'setenv PATH'
  56. ren 'mv'
  57. time 'echo $T'
  58. type 'cat -o'
  59. ver 'echo $V'
  60.