diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f89cba0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/.local/bin/calcpy"] + path = src/.local/bin/calcpy + url = https://github.com/idanpa/calcpy diff --git a/programs b/programs index d7b3c00..c780896 100644 --- a/programs +++ b/programs @@ -56,6 +56,9 @@ python-lsp-server python-lsp-black typescript typescript-language-server +# .local/bin/calcpy/ script +ipython +python-sympy # # for new systems diff --git a/src/.config/fish/aliases.fish b/src/.config/fish/aliases.fish index 5e33841..cf7edc1 100644 --- a/src/.config/fish/aliases.fish +++ b/src/.config/fish/aliases.fish @@ -33,6 +33,9 @@ function bk; $EDITOR ~/dox/not/bk.txt; end function rem; $EDITOR ~/dox/not/rem; end function ldg; $EDITOR ~/dox/not/journal.ldg; end +# pocket calculator +function calcpy; python3 ~/.local/bin/calcpy/calcpy_cli.py; end + # music recognition function musrec # if file exists diff --git a/src/.config/ipython/profile_calcpy/ipython_config.py b/src/.config/ipython/profile_calcpy/ipython_config.py new file mode 100644 index 0000000..c9fbc24 --- /dev/null +++ b/src/.config/ipython/profile_calcpy/ipython_config.py @@ -0,0 +1,4 @@ +c = get_config() + +c.TerminalInteractiveShell.editing_mode = "vi" +c.TerminalInteractiveShell.show_rewritten_input = False diff --git a/src/.config/ipython/profile_calcpy/startup/README b/src/.config/ipython/profile_calcpy/startup/README new file mode 100644 index 0000000..61d4700 --- /dev/null +++ b/src/.config/ipython/profile_calcpy/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 diff --git a/src/.config/ipython/profile_calcpy/startup/startup.ipy b/src/.config/ipython/profile_calcpy/startup/startup.ipy new file mode 100644 index 0000000..795bf6a --- /dev/null +++ b/src/.config/ipython/profile_calcpy/startup/startup.ipy @@ -0,0 +1,4 @@ +# vim: ft=python + +# don't need parentheses on some function calls +%autocall 2 diff --git a/src/.local/bin/calcpy b/src/.local/bin/calcpy new file mode 160000 index 0000000..502e4d3 --- /dev/null +++ b/src/.local/bin/calcpy @@ -0,0 +1 @@ +Subproject commit 502e4d3c811325343c2f71406edae75a4201b30c