Update-pkg: updated version
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
@@ -17,7 +17,7 @@ NC='\033[0m'
|
||||
TERRAFORM_VERSION="1.5.7"
|
||||
|
||||
# Python
|
||||
if which python3 >/dev/null 2>&1; then
|
||||
if which python3 > /dev/null 2>&1; then
|
||||
python="python3"
|
||||
pip="pip3"
|
||||
else
|
||||
@@ -72,7 +72,7 @@ function command_start() {
|
||||
}
|
||||
|
||||
function command_exists() {
|
||||
if command -v "$1" >/dev/null 2>&1; then
|
||||
if command -v "$1" > /dev/null 2>&1; then
|
||||
timestamp "Command $1 has been found"
|
||||
else
|
||||
err "Command $1 has been NOT found"
|
||||
@@ -94,6 +94,13 @@ function update_pip() {
|
||||
function install_neovim_module_for_python() {
|
||||
# Python module in neovim
|
||||
$pip install pynvim neovim imps $PIPEXTPRE
|
||||
|
||||
# Ruby module for neovim
|
||||
gem install solargraph
|
||||
|
||||
# Node module for neovim
|
||||
npm install @github/copilot-language-server -g --force
|
||||
npm install tree-sitter-cli -g --force
|
||||
}
|
||||
|
||||
function install_node() {
|
||||
@@ -459,47 +466,42 @@ function install_brew_programs() {
|
||||
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
||||
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
|
||||
|
||||
timestamp "Installing brew programs"
|
||||
|
||||
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
|
||||
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||
timestamp "Installing the $i brew program"
|
||||
brew install $i --force
|
||||
if $? -ne 0; then
|
||||
err "Failed to install the $i brew program"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
timestamp "Installing brew cask programs"
|
||||
|
||||
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
|
||||
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||
timestamp "Installing the $i brew cask program"
|
||||
brew install $i --cask --force
|
||||
fi
|
||||
done
|
||||
|
||||
xattr -r -d com.apple.quarantine /Applications/Spotify.app
|
||||
xattr -r -d com.apple.quarantine /Applications/Stats.app
|
||||
|
||||
xattr -r -d com.apple.quarantine /opt/homebrew/bin/mpv /Applications/mpv.app
|
||||
|
||||
duti -s io.mpv avi all
|
||||
duti -s io.mpv mkv all
|
||||
duti -s io.mpv mp4 all
|
||||
duti -s io.mpv ts all
|
||||
|
||||
xattr -r -d com.apple.quarantine /Applications/qView.app
|
||||
duti -s com.interversehq.qView public.jpeg all
|
||||
duti -s com.interversehq.qView public.png all
|
||||
duti -s com.interversehq.qView com.compuserve.gif all
|
||||
duti -s com.interversehq.qView public.tiff all
|
||||
|
||||
xattr -r -d com.apple.quarantine /Applications/chatterino.app
|
||||
|
||||
brew cleanup --prune=all
|
||||
}
|
||||
|
||||
function install_winbox_old() {
|
||||
curl -o /tmp/winbox64.exe \
|
||||
"$(curl --silent https://mikrotik.com/download | grep -o 'https:\/\/download.*winbox64.exe')"
|
||||
mv -v /tmp/winbox64.exe ~/Applications/winbox.exe
|
||||
xattr -cr ~/Applications/winbox.exe
|
||||
}
|
||||
|
||||
function install_prettier() {
|
||||
$install prettier
|
||||
$install prettierd
|
||||
@@ -587,23 +589,27 @@ function install_font_terminess() {
|
||||
fi
|
||||
}
|
||||
|
||||
function update_zsh() {
|
||||
omz update
|
||||
}
|
||||
|
||||
function main() {
|
||||
# command_start update_pip
|
||||
# command_start install_neovim_module_for_python
|
||||
# command_start install_node
|
||||
# command_start install_go
|
||||
# # command_start install_pyright
|
||||
# command_start install_mdformat
|
||||
# command_start install_ruff
|
||||
# command_start install_lazy
|
||||
# command_start install_dlv
|
||||
# command_start install_bash-language-server
|
||||
# command_start install_yaml-language-server
|
||||
# command_start install_marksman
|
||||
# command_start install_shfmt
|
||||
# command_start install_shellcheck
|
||||
# command_start install_gopls
|
||||
# # command_start install_terraform
|
||||
command_start update_pip
|
||||
command_start install_neovim_module_for_python
|
||||
command_start install_node
|
||||
command_start install_go
|
||||
# command_start install_pyright
|
||||
command_start install_mdformat
|
||||
command_start install_ruff
|
||||
command_start install_lazy
|
||||
command_start install_dlv
|
||||
command_start install_bash-language-server
|
||||
command_start install_yaml-language-server
|
||||
command_start install_marksman
|
||||
command_start install_shfmt
|
||||
command_start install_shellcheck
|
||||
command_start install_gopls
|
||||
# command_start install_terraform
|
||||
command_start install_terraform_stable
|
||||
command_start install_terragrunt
|
||||
command_start install_azure_cli
|
||||
@@ -623,13 +629,13 @@ function main() {
|
||||
command_start install_precommit
|
||||
command_start install_streamlink
|
||||
command_start install_fzf
|
||||
command_start install_winbox_old
|
||||
command_start install_prettier
|
||||
command_start install_google_cloud_sdk
|
||||
command_start install_bgpreader
|
||||
command_start install_font_terminess
|
||||
command_start install_zsh_addons
|
||||
command_start install_brew_programs
|
||||
command_start update_zsh
|
||||
}
|
||||
|
||||
main
|
||||
|
||||
Reference in New Issue
Block a user