|
|
|
@ -113,7 +113,6 @@ function install_node(){
|
|
|
|
|
function install_pyright() {
|
|
|
|
|
# Install pyright
|
|
|
|
|
sudo npm -s -g i pyright --force
|
|
|
|
|
$pip install black $PIPEXTPRE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function install_mdformat() {
|
|
|
|
@ -240,11 +239,6 @@ function install_gopls() {
|
|
|
|
|
GO111MODULE=on go install golang.org/x/tools/gopls@latest
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function install_black() {
|
|
|
|
|
# Install black
|
|
|
|
|
$pip install black $PIPEXTPRE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function install_ansible() {
|
|
|
|
|
# Install Ansible
|
|
|
|
|
$pip install ansible ansible-lint ansible-core $PIPEXTPRE
|
|
|
|
@ -285,7 +279,7 @@ function install_ytdlp() {
|
|
|
|
|
|
|
|
|
|
function install_spotifydl() {
|
|
|
|
|
# Install spotify_dl
|
|
|
|
|
$pip install spotify_dl $PIPEXTPRE
|
|
|
|
|
$pip install spotdl $PIPEXTPRE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function update() {
|
|
|
|
@ -355,9 +349,9 @@ function install_kubernetes() {
|
|
|
|
|
LINK=""
|
|
|
|
|
CURRENT_VERSION=""
|
|
|
|
|
REMOTE_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
|
|
|
|
|
KUBECTL_LOCATION="$HOME/.local/bin/kubectl"
|
|
|
|
|
KUBECTL_LOCATION="/opt/homebrew/bin/kubectl"
|
|
|
|
|
|
|
|
|
|
[ -f $HOME/.local/bin/kubectl ] && CURRENT_VERSION=$($KUBECTL_LOCATION version --client | grep --color=no -iEo 'Client Version: v[0-9\.]+' | grep -ioE --color=no 'v[0-9\.]+')
|
|
|
|
|
[ -f $KUBECTL_LOCATION ] && CURRENT_VERSION=$($KUBECTL_LOCATION version --client | grep --color=no -iEo 'Client Version: v[0-9\.]+' | grep -ioE --color=no 'v[0-9\.]+')
|
|
|
|
|
|
|
|
|
|
if [ "$REMOTE_VERSION" == "$CURRENT_VERSION" ]; then
|
|
|
|
|
timestamp "The current version of the kubectl is the same as the newest version"
|
|
|
|
@ -426,6 +420,11 @@ function install_tss_client() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function install_taplo() {
|
|
|
|
|
# Install taplo
|
|
|
|
|
$install taplo
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function main() {
|
|
|
|
|
command_start update_pip
|
|
|
|
|
command_start install_neovim_module_for_python
|
|
|
|
@ -446,7 +445,6 @@ function main() {
|
|
|
|
|
command_start install_terraform_stable
|
|
|
|
|
command_start install_terragrunt
|
|
|
|
|
command_start install_azure_cli
|
|
|
|
|
command_start install_black
|
|
|
|
|
command_start install_ansible
|
|
|
|
|
command_start install_meraki_ansible
|
|
|
|
|
command_start install_ansible-language-server
|
|
|
|
@ -459,6 +457,7 @@ function main() {
|
|
|
|
|
command_start install_kubernetes
|
|
|
|
|
command_start install_rust
|
|
|
|
|
command_start install_tss_client
|
|
|
|
|
command_start install_taplo
|
|
|
|
|
command_start update
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|