diff --git a/install.sh b/install.sh index 26c8f51..c20381f 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/ipython/profile_default/ipython_config.py b/ipython/profile_default/ipython_config.py index e208d45..44c39dd 100644 --- a/ipython/profile_default/ipython_config.py +++ b/ipython/profile_default/ipython_config.py @@ -1,2 +1,3 @@ c.TerminalInteractiveShell.editing_mode = "vi" c.TerminalInteractiveShell.mouse_support = True # prevents from selecting text +c.TerminalInteractiveShell.true_color = True diff --git a/ipython/profile_default/startup/README b/ipython/profile_default/startup/README new file mode 100644 index 0000000..61d4700 --- /dev/null +++ b/ipython/profile_default/startup/README @@ -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