Skip to content

Commit e9a4c64

Browse files
committed
✨ Add 'i' custom IPython shortcut
1 parent 0dffe56 commit e9a4c64

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.bash_profile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ alias git-summary='~/git/git-summary/git-summary'
7272
alias s='subl'
7373
alias sm='smerge'
7474
alias xdg-open='open'
75+
alias envls='pyenv virtualenvs'
76+
alias i="ipython -i -c '
77+
# just make sure to use escaped double quotes
78+
import os, numpy as np, pandas as pd
79+
from pathlib import Path
80+
here = Path(\".\").resolve()
81+
82+
# hotreload imports on each prompt
83+
%load_ext autoreload
84+
%autoreload 2
85+
86+
# pip install ipython-autotime
87+
%load_ext autotime
88+
'"
7589

7690

7791

@@ -96,6 +110,7 @@ export CLICOLOR=1
96110
export LSCOLORS=ExFxBxDxCxegedabagacad
97111
PS1="⨊ 𝕯𝓭𝓵:\[\033[36m\]\w\[\033[m\]$ " # ⚛ ⨊ 𝓓𝔇𝒟ℓℒ㎗ 🍺 ℵ ∯ ∰ ∞
98112
# add working dir to tab name https://gist.github.com/phette23/5270658
113+
# superceded by https://iterm2.com/documentation-badges.html
99114
#if [ $ITERM_SESSION_ID ]; then
100115
# export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND";
101116
#fi

com.googlecode.iterm2.plist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,18 @@ Maximize Active Pane</string>
322322
<key>Red Component</key>
323323
<real>1</real>
324324
</dict>
325+
<key>Badge Font</key>
326+
<string>InconsolataLGCNerdFontComplete-Bold</string>
327+
<key>Badge Max Height</key>
328+
<real>0.040000000000000001</real>
329+
<key>Badge Max Width</key>
330+
<real>0.5</real>
331+
<key>Badge Right Margin</key>
332+
<real>10</real>
333+
<key>Badge Text</key>
334+
<string>(\(jobPid)) \(rows)x\(columns)</string>
335+
<key>Badge Top Margin</key>
336+
<real>10</real>
325337
<key>Blinking Cursor</key>
326338
<false/>
327339
<key>Blur</key>
@@ -758,6 +770,8 @@ Maximize Active Pane</string>
758770
<array/>
759771
<key>Terminal Type</key>
760772
<string>xterm-256color</string>
773+
<key>Title Components</key>
774+
<integer>3</integer>
761775
<key>Transparency</key>
762776
<real>0.0</real>
763777
<key>Unlimited Scrollback</key>

0 commit comments

Comments
 (0)