blob: 2219e2580fd5f1a9c4c1ee80a529569518e49c09 [file] [log] [blame]
Derek Baum99446702010-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
14# FELIX-2335 prevents the use of (bundle 0) loadclass
15addcommand system ((bundle 1) loadclass java.lang.System)
16
17# alias to print full stack trace
18e = { $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
29prompt = 'g! '
30
31# print welcome message
32try {
33 cat ($0 resolve motd)
34}
35
36# end