update ipython config, add to install script

feature/symbol-search
bretello 2020-11-22 16:40:38 +01:00
parent 3d3e3c13ad
commit a0db0e71e7
3 changed files with 20 additions and 0 deletions

View File

@ -48,6 +48,12 @@ function setup_vim {
(cd ~/.vim_runtime/my_plugins && git add -f * && git commit -m "bretello dotfiles")
}
function setup_ipython {
python -m pip install pip ipython || python -m pip install --user pip ipython
ipython -c "1+1" # run ipython once so that we are sure that the profile directories exist
ln -s "$DOTFILES/ipython/profile_default/ipython_config.py" "$HOME/.ipython/profile_default/"
ln -s "$DOTFILES/ipython/profile_default/startup" "$HOME/.ipython/profile_default/startup"
}
# Add an ssh config file with:
# - Connection multiplexer for faster multiple connections
@ -175,6 +181,8 @@ function brethil_dotfiles_setup {
create_ssh_config
# git config
setup_git
# ipython profile
setup_ipython
# pdbpp rc
setup_pdbprc
# ackrc

View File

@ -1,2 +1,3 @@
c.TerminalInteractiveShell.editing_mode = "vi"
c.TerminalInteractiveShell.mouse_support = True # prevents from selecting text
c.TerminalInteractiveShell.true_color = True

View File

@ -0,0 +1,11 @@
This is the IPython startup directory
.py and .ipy files in this directory will be run *prior* to any code or files specified
via the exec_lines or exec_files configurables whenever you load this profile.
Files will be run in lexicographical order, so you can control the execution order of files
with a prefix, e.g.::
00-first.py
50-middle.py
99-last.ipy