Derek Baum | bd5b608 | 2010-05-13 17:32:34 +0000 | [diff] [blame^] | 1 | # default gosh_profile |
| 2 | # only read if etc/gosh_profile doesn't exist relative to the System property |
| 3 | # gosh.home or failing that the current directory. |
| 4 | |
| 5 | # ensure gogo commands are found first |
| 6 | SCOPE = gogo:* |
| 7 | |
| 8 | # add methods on BundleContext object as commands |
| 9 | #addcommand context ${.context} (${.context} class) |
| 10 | # bug: above invokes (String, Object, String) instead of (String, Object, Class) |
| 11 | addcommand context ${.context} |
| 12 | |
| 13 | # add methods on System object as commands |
| 14 | # FELIX-2335 prevents the use of (bundle 0) loadclass |
| 15 | addcommand system ((bundle 1) loadclass java.lang.System) |
| 16 | |
| 17 | # alias to print full stack trace |
| 18 | e = { $exception printStackTrace } |
| 19 | |
| 20 | ## disable console auto-formatting of each result |
| 21 | # you will then need to explicitly use the 'format' command |
| 22 | # to print the result of commands that don't write to stdout. |
| 23 | #.Gogo.format = false |
| 24 | |
| 25 | ## disable printing the formatted result of a command into pipelines |
| 26 | #.Format.Pipe = false |
| 27 | |
| 28 | # set prompt |
| 29 | prompt = 'g! ' |
| 30 | |
| 31 | # print welcome message |
| 32 | try { |
| 33 | cat ($0 resolve motd) |
| 34 | } |
| 35 | |
| 36 | # end |