Compare commits
No commits in common. "781f2ef7a2ab4e029b09ecc5110d35d9b0124b25" and "0683408c18887f994bed579af2fd80fc33ecdbac" have entirely different histories.
781f2ef7a2
...
0683408c18
@ -9,14 +9,6 @@ RED='\033[0;31m'
|
||||
GREEN='\033[0;0;32m'
|
||||
NC='\033[0m'
|
||||
|
||||
PIPEXT="--user --force --quiet"
|
||||
PIPEXTPRE="--pre $PIPEXT"
|
||||
|
||||
if [[ "$(uname -r)" =~ "gentoo" || "$(uname -r)" =~ "WSL2" ]]; then
|
||||
PIPEXT="$PIPEXT --break-system-packages"
|
||||
PIPEXTPRE="$PIPEXTPRE --break-system-packages"
|
||||
fi
|
||||
|
||||
function timestamp() {
|
||||
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
|
||||
}
|
||||
@ -36,16 +28,12 @@ function command_start() {
|
||||
|
||||
function update_pip() {
|
||||
# Update the pip
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
python3 -m pip install --upgrade pip --user
|
||||
elif [[ "$(uname -r)" =~ "gentoo" ]]; then
|
||||
sudo emerge dev-python/pip
|
||||
fi
|
||||
python3 -m pip install --upgrade pip --user
|
||||
}
|
||||
|
||||
function install_neovim_module_for_python() {
|
||||
# Python module in neovim
|
||||
pip3 install neovim $PIPEXTPRE
|
||||
pip3 install neovim --pre --user --force --quiet
|
||||
}
|
||||
|
||||
function install_pyright() {
|
||||
@ -112,16 +100,6 @@ function install_shellcheck() {
|
||||
fi
|
||||
}
|
||||
|
||||
function install_marksman() {
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
brew install marksman -q
|
||||
else
|
||||
wget https://github.com/artempyanykh/marksman/releases/latest/download/marksman-linux-x64 -O $HOME/.local/bin/marksman
|
||||
chmod +x $HOME/.local/bin/marksman
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
function install_go() {
|
||||
# Install the golang
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
@ -138,13 +116,13 @@ function install_gopls() {
|
||||
|
||||
function install_black() {
|
||||
# Install black
|
||||
pip3 install black $PIPEXTPRE
|
||||
pip3 install black --pre --user --force --quiet
|
||||
}
|
||||
|
||||
function install_ansible() {
|
||||
# Install Ansible
|
||||
pip3 install ansible ansible-lint ansible-core $PIPEXTPRE
|
||||
pip3 install ansible-parallel $PIPEXTPRE
|
||||
pip3 install ansible ansible-lint ansible-core --pre --user --force --quiet
|
||||
pip3 install ansible-parallel --pre --user --force --quiet
|
||||
}
|
||||
|
||||
function install_ansible-language-server() {
|
||||
@ -156,27 +134,27 @@ function install_ansible-language-server() {
|
||||
function install_meraki_ansible() {
|
||||
# Install python, ansible module for meraki
|
||||
ansible-galaxy collection install cisco.meraki --force
|
||||
pip3 install meraki $PIPEXT
|
||||
pip3 install meraki --user --force --quiet
|
||||
}
|
||||
|
||||
function install_azure_cli() {
|
||||
# Install azure_cli
|
||||
pip3 install azure-cli $PIPEXTPRE
|
||||
pip3 install azure-cli --pre --user --force --quiet
|
||||
}
|
||||
|
||||
function install_awscli() {
|
||||
# Install awscli
|
||||
pip3 install awscli $PIPEXTPRE
|
||||
pip3 install awscli --pre --user --force --quiet
|
||||
}
|
||||
|
||||
function install_ytdlp() {
|
||||
# Install yt-dlp
|
||||
pip3 install yt-dlp $PIPEXTPRE
|
||||
pip3 install yt-dlp --pre --user --force --quiet
|
||||
}
|
||||
|
||||
function install_spotifydl() {
|
||||
# Install spotify_dl
|
||||
pip3 install spotify_dl $PIPEXTPRE
|
||||
pip3 install spotify_dl --pre --user --force --quiet
|
||||
}
|
||||
|
||||
function update() {
|
||||
@ -224,14 +202,12 @@ function update() {
|
||||
|
||||
function main() {
|
||||
command_start update_pip
|
||||
command_start install_neovim_module_for_python
|
||||
command_start install_go
|
||||
command_start install_pyright
|
||||
command_start install_lazy
|
||||
command_start install_bash-language-server
|
||||
command_start install_yaml-language-server
|
||||
command_start install_ansible-language-server
|
||||
command_start install_marksman
|
||||
command_start install_shfmt
|
||||
command_start install_shellcheck
|
||||
command_start install_gopls
|
||||
|
Loading…
Reference in New Issue
Block a user