Skip to content

Commit

Permalink
Install rich traceback if available
Browse files Browse the repository at this point in the history
  • Loading branch information
tshu-w committed May 19, 2024
1 parent 72bdb45 commit 901a8ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@

### ZSH ###
*.zwc
.zprofile
.zprofile

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
5 changes: 5 additions & 0 deletions config/python/sitecustomize.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
try:
from rich.traceback import install
install(show_locals=True)
except ImportError:
pass
1 change: 1 addition & 0 deletions runcom/dot-zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export MACHINE_STORAGE_PATH=$XDG_DATA_HOME/docker-machine
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export PIPX_HOME=$XDG_DATA_HOME/pipx
export PYTHONSTARTUP=$XDG_CONFIG_HOME/python/pythonrc
export PYTHONPATH=$XDG_CONFIG_HOME/python${PYTHONPATH:+":$PYTHONPATH"}
export RIPGREP_CONFIG_PATH=$XDG_CONFIG_HOME/ripgrep/ripgreprc
export RUFF_CACHE_DIR=$XDG_CACHE_HOME/ruff
export VIMINIT="set nocp | source $XDG_CONFIG_HOME/vim/vimrc"
Expand Down

0 comments on commit 901a8ed

Please sign in to comment.