blob: 2440d945d179209b07c05b04ae738475a7681e15 [file] [log] [blame]
Derek Baumbd5b6082010-05-13 17:32:34 +00001# 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
6SCOPE = 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)
11addcommand context ${.context}
12
13# add methods on System object as commands
Derek Baum75d58ba2010-06-24 21:03:24 +000014addcommand system ((context:bundle 0) loadclass java.lang.System)
Derek Baumbd5b6082010-05-13 17:32:34 +000015
16# alias to print full stack trace
17e = { $exception printStackTrace }
18
19## disable console auto-formatting of each result
20# you will then need to explicitly use the 'format' command
21# to print the result of commands that don't write to stdout.
22#.Gogo.format = false
23
24## disable printing the formatted result of a command into pipelines
25#.Format.Pipe = false
26
27# set prompt
28prompt = 'g! '
29
30# print welcome message
31try {
32 cat ($0 resolve motd)
33}
34
35# end