Compare commits
5 Commits
c6aa3e1bce
...
5c27f13ef1
Author | SHA1 | Date | |
---|---|---|---|
5c27f13ef1 | |||
dfb2b56827 | |||
1f2c0ab1cc | |||
f201868727 | |||
129ab023f3 |
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "src/.local/bin/calcpy"]
|
||||||
|
path = src/.local/bin/calcpy
|
||||||
|
url = https://github.com/idanpa/calcpy
|
3
programs
3
programs
@ -56,6 +56,9 @@ python-lsp-server
|
|||||||
python-lsp-black
|
python-lsp-black
|
||||||
typescript
|
typescript
|
||||||
typescript-language-server
|
typescript-language-server
|
||||||
|
# .local/bin/calcpy/ script
|
||||||
|
ipython
|
||||||
|
python-sympy
|
||||||
|
|
||||||
#
|
#
|
||||||
# for new systems
|
# for new systems
|
||||||
|
@ -33,6 +33,12 @@ function bk; $EDITOR ~/dox/not/bk.txt; end
|
|||||||
function rem; $EDITOR ~/dox/not/rem; end
|
function rem; $EDITOR ~/dox/not/rem; end
|
||||||
function ldg; $EDITOR ~/dox/not/journal.ldg; end
|
function ldg; $EDITOR ~/dox/not/journal.ldg; end
|
||||||
|
|
||||||
|
# pocket calculator
|
||||||
|
function calcpy; python3 ~/.local/bin/calcpy/calcpy_cli.py; end
|
||||||
|
|
||||||
|
# disable history on units
|
||||||
|
alias units='units -H ""'
|
||||||
|
|
||||||
# music recognition
|
# music recognition
|
||||||
function musrec
|
function musrec
|
||||||
# if file exists
|
# if file exists
|
||||||
|
5
src/.config/ipython/profile_calcpy/ipython_config.py
Normal file
5
src/.config/ipython/profile_calcpy/ipython_config.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
c = get_config()
|
||||||
|
|
||||||
|
c.TerminalInteractiveShell.editing_mode = "vi"
|
||||||
|
c.TerminalInteractiveShell.show_rewritten_input = False
|
||||||
|
c.TerminalInteractiveShell.emacs_bindings_in_vi_insert_mode = False
|
11
src/.config/ipython/profile_calcpy/startup/README
Normal file
11
src/.config/ipython/profile_calcpy/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
|
6
src/.config/ipython/profile_calcpy/startup/startup.ipy
Normal file
6
src/.config/ipython/profile_calcpy/startup/startup.ipy
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# vim: ft=python
|
||||||
|
|
||||||
|
from math import degrees as dg
|
||||||
|
|
||||||
|
# don't need parentheses on some function calls
|
||||||
|
%autocall 2
|
@ -47,8 +47,8 @@ set-hook -g pane-exited 'run-shell "dwm.tmux layouttile"'
|
|||||||
bind e newpane
|
bind e newpane
|
||||||
bind w newpanecurdir
|
bind w newpanecurdir
|
||||||
bind c killpane
|
bind c killpane
|
||||||
bind -n C-n nextpane
|
bind j nextpane
|
||||||
bind -n C-o prevpane
|
bind k prevpane
|
||||||
bind -n C-b zoom
|
bind -n C-b zoom
|
||||||
bind h decmfact
|
bind h decmfact
|
||||||
bind l incmfact
|
bind l incmfact
|
||||||
|
1
src/.local/bin/calcpy
Submodule
1
src/.local/bin/calcpy
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 5ba26197b7410f16581aa8966498553d7ca83b89
|
Loading…
x
Reference in New Issue
Block a user