diff --git a/dot_bashrc b/dot_bashrc index b807c52..a6d9c29 100644 --- a/dot_bashrc +++ b/dot_bashrc @@ -110,35 +110,16 @@ alias tkill="for s in \$(tmux list-sessions | awk -F ':' '{print \$1}' | fzf); d alias tiga='tig --all' -# ------------------------------------------------------------- -# PYTHON -# ------------------------------------------------------------- - -[[ -s $HOME/.pythonz/etc/bashrc ]] && source $HOME/.pythonz/etc/bashrc - -if [ -f "$HOME/.pythonz/pythons/CPython-3.9.1/bin/python" ]; then - export PATH="$HOME/.pythonz/pythons/CPython-3.9.1/bin:$PATH" -fi - -if [ -f "$HOME/.pythonz/pythons/CPython-3.9.1/bin/pew" ]; then - source "$(pew shell_config)" -fi - -if [ -d "$HOME/.poetry/bin" ]; then - export PATH="$HOME/.poetry/bin:$PATH" -fi - # ------------------------------------------------------------- # Source .bashrc.d files # ------------------------------------------------------------- -if [ -d "$HOME/.local/bin" ]; then - export PATH="$HOME/.local/bin:$PATH" -fi - if [ -d "$HOME/.bashrc.d/" ]; then for file in ~/.bashrc.d/*.bashrc; do . "$file" done fi +if [ -d "$HOME/.local/bin" ]; then + export PATH="$HOME/.local/bin:$PATH" +fi diff --git a/dot_bashrc.d/python.bashrc b/dot_bashrc.d/python.bashrc new file mode 100644 index 0000000..e8ce7d6 --- /dev/null +++ b/dot_bashrc.d/python.bashrc @@ -0,0 +1,19 @@ +# ------------------------------------------------------------- +# PYTHON +# ------------------------------------------------------------- + +[[ -s $HOME/.pythonz/etc/bashrc ]] && source $HOME/.pythonz/etc/bashrc + +if [ -f "$HOME/.pythonz/pythons/CPython-3.9.9/bin/python" ]; then + export PATH="$HOME/.pythonz/pythons/CPython-3.9.9/bin:$PATH" +fi + +if [ -f "$HOME/.pythonz/pythons/CPython-3.9.9/bin/pew" ]; then + source "$(pew shell_config)" +fi + +if [ -d "$HOME/.poetry/bin" ]; then + export PATH="$HOME/.poetry/bin:$PATH" +fi + +