From 757a8eb53de15124a149f2c9e13ec64f07c100a9 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 28 Feb 2021 13:58:17 +0100 Subject: Added python startup script to avoid writting python interpretor hisotry in ~/.python_history --- config/zsh/zprofile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/zsh') diff --git a/config/zsh/zprofile b/config/zsh/zprofile index c18b368..e18025d 100755 --- a/config/zsh/zprofile +++ b/config/zsh/zprofile @@ -21,6 +21,7 @@ export XMONAD_CACHE_HOME="$XDG_CACHE_HOME/xmonad" export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc" export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc" +export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py" # shellcheck disable=SC2016 export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' export IPYTHONDIR="$XDG_CONFIG_HOME/ipython" @@ -32,6 +33,7 @@ export CARGO_HOME="$XDG_DATA_HOME/cargo" # cache export HISTFILE="$XDG_CACHE_HOME/history" export LESSHISTFILE='-' # no ~/.lesshst +export PYTHON_EGG_CACHE="$XDG_CACHE_HOME/python-eggs" # runtime export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" @@ -53,4 +55,4 @@ export LESS_TERMCAP_ZW=$(tput rsupm) export MINIKUBE_IN_STYLE=false # disable cringe minikube emojies -[ "$(tty)" = '/dev/tty1' ] && startx ; poweroff +[ "$(tty)" = '/dev/tty1' ] && { startx ; poweroff; } -- cgit