python: interactive console imports sympy by default
This commit is contained in:
parent
30c7e0f1e1
commit
8674b4b495
7
src/dot_config/pythonstartup.py
Normal file
7
src/dot_config/pythonstartup.py
Normal file
@ -0,0 +1,7 @@
|
||||
try:
|
||||
from sympy import init_session, Rational
|
||||
init_session()
|
||||
|
||||
R = Rational
|
||||
except ImportError:
|
||||
pass
|
@ -8,6 +8,9 @@ export VARS_SET=1
|
||||
# by default chmod o-rwx
|
||||
umask 007
|
||||
|
||||
# python rc/startup file
|
||||
export PYTHONSTARTUP="$HOME/.config/pythonstartup.py"
|
||||
|
||||
# Set XDG directories
|
||||
export XDG_CONFIG_HOME="$HOME"/.config
|
||||
export XDG_CACHE_HOME="$HOME"/.cache
|
||||
|
Loading…
Reference in New Issue
Block a user