diff options
author | tdro <tdro@users.noreply.github.com> | 2020-12-03 03:02:07 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-12-03 03:02:07 -0500 |
commit | c7ee1b2cfa1e678818cde00d7efc89a05fa45ecc (patch) | |
tree | ab83820e6ed42f090ef6227cfc0370c18ad6f6db | |
parent | bd44f769e1902dca82b2c2e90825d5b0f4ab4411 (diff) | |
download | dotfiles-c7ee1b2cfa1e678818cde00d7efc89a05fa45ecc.tar.gz dotfiles-c7ee1b2cfa1e678818cde00d7efc89a05fa45ecc.tar.bz2 dotfiles-c7ee1b2cfa1e678818cde00d7efc89a05fa45ecc.zip |
.bash_profile: Disable python writing to ~/.python_history
-rw-r--r-- | .bash_profile | 7 | ||||
-rw-r--r-- | .config/python/pythonrc | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/.bash_profile b/.bash_profile index 5d2a718..b8381b3 100644 --- a/.bash_profile +++ b/.bash_profile @@ -27,6 +27,7 @@ PS1_SSHD='$(E=$? && [ "$E" = 0 ] || echo "$E ")\[\e[0;32m\]\W\[\e[0m\] \[\e[0;32 export PATH="$HOME/.local/bin:$PATH" # general exports +export CARGO_HOME="$XDG_CACHE_HOME/cargo" export EDITOR=vim export FZF_DIRECTORY_MARKS=$HOME/Documents/.fzf-marks export FZF_FILE_MARKS=$HOME/Documents/.fzf-fmarks @@ -38,17 +39,17 @@ export ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority" export INPUTRC="$XDG_CONFIG_HOME/inputrc" export LESSHISTFILE="$XDG_CACHE_HOME/less.history" export MANPAGER="vim -M +MANPAGER -" +export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer" export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npmrc" export PROMPT_COMMAND='cd .; history -a; history -n;' +export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc" +export RUSTUP_HOME="$XDG_DATA_HOME/rustup" export SUDO_ASKPASS="$HOME/.local/bin/rofi-askpass" export TERMINAL=urxvt export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" export XDG_CACHE_HOME="$HOME/.cache" export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" -export CARGO_HOME="$XDG_CACHE_HOME/cargo" -export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer" -export RUSTUP_HOME="$XDG_DATA_HOME/rustup" command -v groff > /dev/null 2>&1 && \ GROFF_FONT_PATH="$HOME/.nix-profile/share/groff/$(groff -v | head -n1 | awk '{ print $4 }')/font" && \ export GROFF_FONT_PATH diff --git a/.config/python/pythonrc b/.config/python/pythonrc new file mode 100644 index 0000000..b32e6b6 --- /dev/null +++ b/.config/python/pythonrc @@ -0,0 +1,2 @@ +import readline +readline.write_history_file = lambda *args: None |