From cc0a85d59d32068e0d33ae9659fea1ee01af398a Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 14 Oct 2021 08:57:07 -0500 Subject: [PATCH] add pythonrc --- .pythonrc | 6 ++++++ .zprofile | 2 ++ install | 1 + 3 files changed, 9 insertions(+) create mode 100644 .pythonrc diff --git a/.pythonrc b/.pythonrc new file mode 100644 index 0000000..b49534f --- /dev/null +++ b/.pythonrc @@ -0,0 +1,6 @@ +try: + from rich import pretty, traceback + pretty.install() + traceback.install() +except ImportError: + pass \ No newline at end of file diff --git a/.zprofile b/.zprofile index 159c572..a3ef250 100644 --- a/.zprofile +++ b/.zprofile @@ -37,3 +37,5 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME export SPACESHIP_BATTERY_SHOW=false export NVM_DIR="$HOME/.nvm" + +export PYTHONSTARTUP=$HOME/.pythonrc diff --git a/install b/install index cda775e..ff43a67 100755 --- a/install +++ b/install @@ -36,6 +36,7 @@ sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- -y ln -sf ${INSTALL_DIR}/.aliases ${HOME}/.aliases ln -sf ${INSTALL_DIR}/.gitconfig ${HOME}/.gitconfig ln -sf ${INSTALL_DIR}/.npmrc ${HOME}/.npmrc +ln -sf ${INSTALL_DIR}/.pythonrc ${HOME}/.pythonrc ln -sf ${INSTALL_DIR}/.zprofile ${HOME}/.zprofile ln -sf ${INSTALL_DIR}/.zshenv ${HOME}/.zshenv ln -sf ${INSTALL_DIR}/.zshrc ${HOME}/.zshrc