Exemple #1
0
_.Smash.ignore_warnings = True
_.Smash.verbose = False
_.Smash.verbose_events = True
_.LiquidPrompt.verbose = False
_.ProjectManager.verbose = False
_.ChangeDirHooks.verbose = False
_.VirtualEnvSupport.verbose = True

_.PyLinter.verbose = True
_.PyLinter.ignore_pep8 = True

# begin Change-Dir-hooks configuration: add any custom hooks here
# see docs at: http://mattvonrocketstein.github.io/smash/plugins.html#cd-hooks
#
# _.ChangeDirHooks.change_dir_hooks.append("some.python.dotpath.fxn")


# begin project manager configuration.
# see docs at: http://mattvonrocketstein.github.io/smash/project_manager.html
#
# the project manager can be configured either from this file directly,
# or from ~/.smash/etc, based on json there.  in each case you can consult
# the corresponding json schema for more information.
#
projects = _.ProjectManager
config.append_from_etc(projects.search_dirs, "search_dirs.json")
config.update_from_etc(projects.project_map, "projects.json")
config.update_from_etc(projects.alias_map, "aliases.json")
config.update_from_etc(projects.macro_map, "macros.json")
config.update_from_etc(projects.venv_map, "venvs.json")
Exemple #2
0
# configure the project manager extension
##########################################################################
projects = _.ProjectManager

# this is safe even when the directories do not exist
projects.search_dirs.append("~/code")
projects.search_dirs.append("~/projects")
projects.search_dirs.append("~/.virtualenvs")

# load user's project manager configs from the ~/.smash/etc json
# see docs at: http://mattvonrocketstein.github.io/smash/project_manager.html
from smashlib.config import SmashConfig

config = SmashConfig(_)

config.append_from_etc(projects.search_dirs, "search_dirs.json")
config.update_from_etc(projects.project_map, "projects.json")
config.update_from_etc(projects.macro_map, "macros.json")
config.update_from_etc(projects.alias_map, "aliases.json")
config.append_from_etc(_.Smash.plugins, "plugins.json")
config.update_from_etc(projects.env_map, "env.json")

# configure the ipython app
##########################################################################
app = _.InteractiveShellApp

# NB: Here's an easy way to issue adhoc
# commands, or modify the user namespace:
#
# app.exec_lines.append("print 'hello world!'")
# app.exec_lines.append("side_effect='whatever'")