mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
update ipython config, add to install script
This commit is contained in:
parent
3d3e3c13ad
commit
a0db0e71e7
|
@ -48,6 +48,12 @@ function setup_vim {
|
||||||
(cd ~/.vim_runtime/my_plugins && git add -f * && git commit -m "bretello dotfiles")
|
(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:
|
# Add an ssh config file with:
|
||||||
# - Connection multiplexer for faster multiple connections
|
# - Connection multiplexer for faster multiple connections
|
||||||
|
@ -175,6 +181,8 @@ function brethil_dotfiles_setup {
|
||||||
create_ssh_config
|
create_ssh_config
|
||||||
# git config
|
# git config
|
||||||
setup_git
|
setup_git
|
||||||
|
# ipython profile
|
||||||
|
setup_ipython
|
||||||
# pdbpp rc
|
# pdbpp rc
|
||||||
setup_pdbprc
|
setup_pdbprc
|
||||||
# ackrc
|
# ackrc
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
c.TerminalInteractiveShell.editing_mode = "vi"
|
c.TerminalInteractiveShell.editing_mode = "vi"
|
||||||
c.TerminalInteractiveShell.mouse_support = True # prevents from selecting text
|
c.TerminalInteractiveShell.mouse_support = True # prevents from selecting text
|
||||||
|
c.TerminalInteractiveShell.true_color = True
|
||||||
|
|
11
ipython/profile_default/startup/README
Normal file
11
ipython/profile_default/startup/README
Normal 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
|
Loading…
Reference in New Issue
Block a user