diff --git a/aliases.sh b/aliases.sh index 9a0173c..6afcff3 100644 --- a/aliases.sh +++ b/aliases.sh @@ -10,7 +10,7 @@ function alias_exists() { } # list of aliases to remove -__removeAliases=(ll l la) +__removeAliases=(l) for __testAlias in ${__removeAliases[@]}; do if alias_exists "$__testAlias"; then @@ -42,7 +42,16 @@ fi alias delcrush='zstd -T0 -19 --rm' alias crush='zstd -T0 -19' -if [[ -e "/opt/esp32/esp-idf" ]]; then - export IDF_TOOLS_PATH=/opt/esp32/expressif - alias get_idf='. /opt/esp32/esp-idf/export.sh' +# Map python when available. +if ! which -s python && which -s python3; then + alias python=python3 fi + +function _restart_plasma() { + ( + set -ex + plasmashell --replace &>/dev/null & + set +xe + disown + ) +} diff --git a/misc.sh b/misc.sh index 5bc7822..7dba21f 100644 --- a/misc.sh +++ b/misc.sh @@ -14,6 +14,8 @@ export LESS=RF # colorize less output if we use a pipe export HISTSIZE=10000 export HISTFILESIZE=20000 - +# added to avoid the need for --break-system-packages when using newer versions +# of PIP. +export PIP_BREAK_SYSTEM_PACKAGES=1 export HISTIGNORE='pwd:exit:fg:bg:top:clear:history:ls:uptime:df' diff --git a/node.sh b/toolchains.sh similarity index 56% rename from node.sh rename to toolchains.sh index 33463db..1ce3470 100644 --- a/node.sh +++ b/toolchains.sh @@ -1,9 +1,10 @@ #!/bin/bash + +## Node # # echo 'prefix = ~/.node' > ~/.npmrc # - if [[ -d ~/.node ]]; then if [[ -d ~/.node/bin ]]; then export PATH="$HOME/.node/bin:$PATH" @@ -11,3 +12,9 @@ if [[ -d ~/.node ]]; then export NODE_PATH="$HOME/.node/lib/node_modules:$NODE_PATH" fi + +## Express IDF for ESP32s +if [[ -e "/opt/esp32/esp-idf" ]]; then + export IDF_TOOLS_PATH=/opt/esp32/expressif + alias get_idf='. /opt/esp32/esp-idf/export.sh' +fi