Skip to content

Commit

Permalink
✨ Add 'i' custom IPython shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Feb 6, 2021
1 parent 0dffe56 commit e9a4c64
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@ alias git-summary='~/git/git-summary/git-summary'
alias s='subl'
alias sm='smerge'
alias xdg-open='open'
alias envls='pyenv virtualenvs'
alias i="ipython -i -c '
# just make sure to use escaped double quotes
import os, numpy as np, pandas as pd
from pathlib import Path
here = Path(\".\").resolve()
# hotreload imports on each prompt
%load_ext autoreload
%autoreload 2
# pip install ipython-autotime
%load_ext autotime
'"



Expand All @@ -96,6 +110,7 @@ export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
PS1="⨊ 𝕯𝓭𝓵:\[\033[36m\]\w\[\033[m\]$ " # ⚛ ⨊ 𝓓𝔇𝒟ℓℒ㎗ 🍺 ℵ ∯ ∰ ∞
# add working dir to tab name https://gist.github.com/phette23/5270658
# superceded by https://iterm2.com/documentation-badges.html
#if [ $ITERM_SESSION_ID ]; then
# export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND";
#fi
Expand Down
14 changes: 14 additions & 0 deletions com.googlecode.iterm2.plist
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,18 @@ Maximize Active Pane</string>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Badge Font</key>
<string>InconsolataLGCNerdFontComplete-Bold</string>
<key>Badge Max Height</key>
<real>0.040000000000000001</real>
<key>Badge Max Width</key>
<real>0.5</real>
<key>Badge Right Margin</key>
<real>10</real>
<key>Badge Text</key>
<string>(\(jobPid)) \(rows)x\(columns)</string>
<key>Badge Top Margin</key>
<real>10</real>
<key>Blinking Cursor</key>
<false/>
<key>Blur</key>
Expand Down Expand Up @@ -758,6 +770,8 @@ Maximize Active Pane</string>
<array/>
<key>Terminal Type</key>
<string>xterm-256color</string>
<key>Title Components</key>
<integer>3</integer>
<key>Transparency</key>
<real>0.0</real>
<key>Unlimited Scrollback</key>
Expand Down

0 comments on commit e9a4c64

Please sign in to comment.