diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-28 13:58:17 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-28 13:58:17 +0100 |
| commit | 757a8eb53de15124a149f2c9e13ec64f07c100a9 (patch) | |
| tree | 7f63c6117e0ee0b329cecbec0390f10e18206b4f /config/zsh | |
| parent | d7f0a32d7c5f6935c08f9c4adcab76c1fdc16c78 (diff) | |
| download | dotfiles-757a8eb53de15124a149f2c9e13ec64f07c100a9.tar.gz dotfiles-757a8eb53de15124a149f2c9e13ec64f07c100a9.tar.bz2 dotfiles-757a8eb53de15124a149f2c9e13ec64f07c100a9.zip | |
Added python startup script to avoid writting python interpretor hisotry in ~/.python_history
Diffstat (limited to 'config/zsh')
| -rwxr-xr-x | config/zsh/zprofile | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |
