Skip to content

Commit

Permalink
Print gitsome version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
donnemartin committed Mar 17, 2019
1 parent 7e8ff54 commit 075c8b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xonsh/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
from xonsh.environ import xonshrc_context, make_args_env
from xonsh.built_ins import XonshSession, load_builtins, load_proxies

from gitsome import __version__ as gitsome_version


events.transmogrify("on_post_init", "LoadEvent")
events.doc(
Expand Down Expand Up @@ -336,6 +338,7 @@ def premain(argv=None):
elif args.rc:
shell_kwargs["rc"] = args.rc
setattr(sys, "displayhook", _pprint_displayhook)
print('Gitsome Version: ' + gitsome_version)
if args.command is not None:
args.mode = XonshMode.single_command
shell_kwargs["shell_type"] = "none"
Expand Down

0 comments on commit 075c8b1

Please sign in to comment.