parent
2321889a52
commit
1f4610e509
|
@ -4,8 +4,6 @@ if command -v node >/dev/null 2>&1; then
|
||||||
# echo addding node langauge stuff
|
# echo addding node langauge stuff
|
||||||
# gives access to packages with bin in a project
|
# gives access to packages with bin in a project
|
||||||
path_append ./node_modules/.bin
|
path_append ./node_modules/.bin
|
||||||
path_append /opt/node-global-apps/bin
|
|
||||||
|
|
||||||
|
|
||||||
export NPM_REGISTRY=https://npm.kebler.net
|
export NPM_REGISTRY=https://npm.kebler.net
|
||||||
alias nr="npm run"
|
alias nr="npm run"
|
||||||
|
|
|
@ -1,12 +1,28 @@
|
||||||
|
#!/bin/bash
|
||||||
alias python3="python3.8"
|
alias python3="python3.8"
|
||||||
alias spip="sudo -H python3.8 -m pip"
|
alias spip="sudo -H python3.8 -m pip"
|
||||||
alias spipi="sudo -H python3.8 -m pip install"
|
alias spipi="sudo -H python3.8 -m pip install"
|
||||||
alias spipiu="sudo -H python3.8 -m pip install -U"
|
alias spipiu="sudo -H python3.8 -m pip install -U"
|
||||||
alias spipl="sudo -H python3.8 -m pip list"
|
alias spipl="sudo -H python3.8 -m pip list"
|
||||||
alias spiplo="sudo -H python3.8 -m pip list --outdated"
|
alias spiplo="sudo -H python3.8 -m pip list --outdated"
|
||||||
|
alias pip3="sudo -H python3.8 -m pip"
|
||||||
alias pipu="pipx upgrade"
|
alias pipu="pipx upgrade"
|
||||||
alias pipua="pipx upgrade-all"
|
alias pipua="pipx upgrade-all"
|
||||||
alias pipupip="pipx upgrade pipx"
|
alias pipupip="pipx upgrade pipx"
|
||||||
alias pipi="pipx install"
|
alias pipi="pipx install"
|
||||||
alias pipl="pipx list"
|
alias pipl="pipx list"
|
||||||
alias piplv="pipx list --verbose"
|
alias piplv="pipx list --verbose"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
spipua () {
|
||||||
|
module_load confirm
|
||||||
|
echo upgrading all base python packages - requires sudo access
|
||||||
|
# sudo -H python3.8 -m pip list --outdated
|
||||||
|
local List
|
||||||
|
local Ver=${1:-3.8}
|
||||||
|
List="$(sudo -H python$Ver -m pip list -o --format columns)"
|
||||||
|
echo "$List"
|
||||||
|
confirm "ATTENTION: upgrade all these packages at once??" || return 0
|
||||||
|
echo "$List" | cut -d' ' -f1 | xargs -n1 sudo -H python$Ver -m pip install -U
|
||||||
|
}
|
||||||
|
|
Reference in New Issue