mirror of
https://github.com/opensiriusfox/bashrc.d.git
synced 2025-06-16 12:20:24 -07:00
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:
parent
a606eb00c8
commit
11ff24b12d
3 changed files with 24 additions and 6 deletions
17
aliases.sh
17
aliases.sh
|
@ -10,7 +10,7 @@ function alias_exists() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# list of aliases to remove
|
# list of aliases to remove
|
||||||
__removeAliases=(ll l la)
|
__removeAliases=(l)
|
||||||
|
|
||||||
for __testAlias in ${__removeAliases[@]}; do
|
for __testAlias in ${__removeAliases[@]}; do
|
||||||
if alias_exists "$__testAlias"; then
|
if alias_exists "$__testAlias"; then
|
||||||
|
@ -42,7 +42,16 @@ fi
|
||||||
alias delcrush='zstd -T0 -19 --rm'
|
alias delcrush='zstd -T0 -19 --rm'
|
||||||
alias crush='zstd -T0 -19'
|
alias crush='zstd -T0 -19'
|
||||||
|
|
||||||
if [[ -e "/opt/esp32/esp-idf" ]]; then
|
# Map python when available.
|
||||||
export IDF_TOOLS_PATH=/opt/esp32/expressif
|
if ! which -s python && which -s python3; then
|
||||||
alias get_idf='. /opt/esp32/esp-idf/export.sh'
|
alias python=python3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function _restart_plasma() {
|
||||||
|
(
|
||||||
|
set -ex
|
||||||
|
plasmashell --replace &>/dev/null &
|
||||||
|
set +xe
|
||||||
|
disown
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
4
misc.sh
4
misc.sh
|
@ -14,6 +14,8 @@ export LESS=RF # colorize less output if we use a pipe
|
||||||
export HISTSIZE=10000
|
export HISTSIZE=10000
|
||||||
export HISTFILESIZE=20000
|
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'
|
export HISTIGNORE='pwd:exit:fg:bg:top:clear:history:ls:uptime:df'
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
## Node
|
||||||
#
|
#
|
||||||
# echo 'prefix = ~/.node' > ~/.npmrc
|
# echo 'prefix = ~/.node' > ~/.npmrc
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ -d ~/.node ]]; then
|
if [[ -d ~/.node ]]; then
|
||||||
if [[ -d ~/.node/bin ]]; then
|
if [[ -d ~/.node/bin ]]; then
|
||||||
export PATH="$HOME/.node/bin:$PATH"
|
export PATH="$HOME/.node/bin:$PATH"
|
||||||
|
@ -11,3 +12,9 @@ if [[ -d ~/.node ]]; then
|
||||||
export NODE_PATH="$HOME/.node/lib/node_modules:$NODE_PATH"
|
export NODE_PATH="$HOME/.node/lib/node_modules:$NODE_PATH"
|
||||||
|
|
||||||
fi
|
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
|
Loading…
Add table
Add a link
Reference in a new issue