Changes to aliases and restart tools

- added _restart_plasma utility funtion
 - made python aliasing more robust
 - added pip enviornment config to avoid nag messages
 - moved toolchain setup to a single file
This commit is contained in:
Luke 2025-01-25 09:59:13 -08:00
parent a606eb00c8
commit 11ff24b12d
3 changed files with 24 additions and 6 deletions

View file

@ -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
)
}

View file

@ -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'

View file

@ -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