configs: updated version

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2026-01-23 14:00:11 +01:00
parent 95d17a86f0
commit 9b12dfc0b9
6 changed files with 446 additions and 428 deletions

View File

@@ -22,6 +22,7 @@ telnet
texinfo
tmux
tree
watch
wget
zoxide
zsh

View File

@@ -1,6 +1,5 @@
akiflow
alacritty
alfred
brave
chatterino
dbeaver-community
discord
@@ -9,7 +8,6 @@ docker
firefox@nightly
font-hack-nerd-font
gimp
google-chrome
hiddenbar
karabiner-elements
keepassxc
@@ -33,6 +31,6 @@ transfer
twingate
visual-studio-code
vlc
whatsapp
winbox
wine-crossover
wireshark

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/opt/homebrew/opt/bash/bin/bash
# shellcheck disable=2010,2045,2086,2155
# Path to the zsh folder
@@ -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
@@ -62,7 +62,7 @@ function err() {
function command_start() {
timestamp "Command $* has been started."
if ! "$*"; then
if ! "$@"; then
err "---------"
err "Command $* went wrong."
err "---------"
@@ -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"
@@ -387,16 +387,27 @@ function install_rust() {
function install_tss_client() {
# Install tss
TSS_VERSION_STABLE="$1"
CURRENT_VERSION="1.5.7"
if [ -z "$TSS_VERSION_STABLE" ]; then
TSS_VERSION_STABLE=""
timestamp "TSS_VERSION_STABLE variable is empty, the latest version will be installed"
fi
# Example link: https://downloads.ss.thycotic.com/secretserversdk/1.5.7/secretserver-sdk-1.5.7-linux-x64.zip
TSSDOCS="https://docs.delinea.com/online-help/secret-server/api-scripting/sdk-devops/sdk-downloads/index.htm"
LINK=""
REMOTE_VERSION=""
if [ "$(uname)" == "Darwin" ]; then
if [ -n "$TSS_VERSION_STABLE" ]; then
LINK="https://downloads.ss.thycotic.com/secretserversdk/$TSS_VERSION_STABLE/secretserver-sdk-$TSS_VERSION_STABLE-osx-x64.zip"
REMOTE_VERSION=$TSS_VERSION
else
LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-osx-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1)
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-osx' | sed 's/-osx//g')
fi
else
LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-linux-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1)
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-linux' | sed 's/-linux//g')
@@ -449,16 +460,14 @@ function install_brew_programs() {
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
for i in "${LIST_OF_PROGRAMS[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
&& \
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
brew install $i --force
fi
done
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
&& \
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
brew install $i --cask --force
fi
@@ -579,22 +588,22 @@ function install_font_terminess() {
}
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
@@ -609,7 +618,7 @@ function main() {
command_start install_gh_cli
command_start install_kubernetes
command_start install_rust
command_start install_tss_client
command_start install_tss_client "1.5.9"
command_start install_taplo
command_start install_precommit
command_start install_streamlink

View File

@@ -1,13 +1,23 @@
#!/bin/bash
~/.local/bin/sidebar-restore-macos
open -gj "afp://10.0.0.14/Downloads"
sleep 10
open -gj "afp://10.0.0.14/Anime"
sleep 2
open -gj "afp://10.0.0.14/Music"
sleep 2
open -gj "afp://10.0.0.14/Video"
sleep 2
open -gj "afp://10.0.0.14/Series"
sleep 2
open -gj "afp://10.0.0.14/Photos"
sleep 2
open -gj "afp://10.0.0.14/Backups"
sleep 2
open -gj "afp://10.0.0.14/Recordings"
sleep 2
open -gj "afp://10.0.0.14/Work"
sleep 2
/usr/local/bin/mysides add Synology file:///Volumes/Recordings/
/usr/local/bin/mysides add Synology file:///Volumes/Backups/
@@ -17,3 +27,4 @@ open -gj "afp://10.0.0.14/Recordings"
/usr/local/bin/mysides add Synology file:///Volumes/Series/
/usr/local/bin/mysides add Synology file:///Volumes/Photos/
/usr/local/bin/mysides add Synology file:///Volumes/Anime/
/usr/local/bin/mysides add Synology file:///Volumes/Work

View File

@@ -1,11 +1,10 @@
#!/bin/bash
/usr/local/bin/mysides remove all
/usr/local/bin/mysides add yorune file:///Users/yorune/
/usr/local/bin/mysides add Git file:///Users/yorune/git/
/usr/local/bin/mysides add Linux file:///Users/yorune/MEGA/Systems/Linux/
/usr/local/bin/mysides add Downloads file:///Users/yorune/Downloads/
/usr/local/bin/mysides add Aplikacje file:///Applications/
/usr/local/bin/mysides add Pictures file:///Users/yorune/Pictures/
/usr/local/bin/mysides add Screenshots file:///Users/yorune/Screenshots/
/usr/local/bin/mysides add Movies file:///Users/yorune/Movies/
/usr/local/bin/mysides add Desktop file:///Users/yorune/Desktop/
/usr/local/bin/mysides add Home file://"$HOME"/
/usr/local/bin/mysides add Git file://"$HOME"/git/
/usr/local/bin/mysides add Linux file://"$HOME"/MEGA/Systems/Linux/
/usr/local/bin/mysides add Downloads file://"$HOME"/Downloads/
# /usr/local/bin/mysides add Aplications file:///Applications/
# /usr/local/bin/mysides add Aplications file:///"$HOME"/Applications/
/usr/local/bin/mysides add Screenshots file://"$HOME"/Screenshots/
/usr/local/bin/mysides add Desktop file://"$HOME"/Desktop/

12
.zshrc
View File

@@ -162,7 +162,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
alias ls="ls -Gh"
alias mpv="mpv --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo+bestaudio/best'"
alias code="open -a 'Visual Studio Code'"
alias xclip="pbcopy"
alias xclip="sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g' | pbcopy"
alias mtr="sudo /opt/homebrew/opt/mtr/sbin/mtr"
alias sleep-lid-off="sudo pmset -b sleep 0; sudo pmset -b disablesleep 1"
alias sleep-lid-on="sudo pmset -b sleep 5; sudo pmset -b disablesleep 0"
@@ -172,13 +172,13 @@ if [[ "$(uname)" == "Darwin" ]]; then
# Terraform
export TFENV_ARCH=amd64
export TFENVVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/ |
grep -iEo '[0-9]\.[0-9]\.[0-9]' |
grep -iEo '[0-9]+\.[0-9]+\.[0-9]+' |
sort |
tail -n1)
head -n1)
export TFVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/*/versions |
grep -iEo '[0-9]\.[0-9]\.[0-9]' |
grep -iEo '[0-9]+\.[0-9]+\.[0-9]+' |
sort |
tail -n1)
head -n1)
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
# Unset browser
@@ -229,7 +229,7 @@ alias neofetch=fastfetch
[ -f $(which zoxide) ] && {eval "$(zoxide init zsh)"; alias cd='z'}
# GoLang
alias go-mod="go mod edit -go $(go version | grep -oE 'go[0-9]*\.[0-9]*\.[0-9]*' | sed 's/go//g'); go get -u; go mod verify; go get -x -v; go mod verify; go mod tidy"
alias go-mod="go mod edit -go=$(go version | grep -oE 'go[0-9]*\.[0-9]*\.[0-9]*' | sed 's/go//g'); go get -u; go mod verify; go get -x -v; go mod verify; go mod tidy"
# Resolve problem with - zsh: no matches found
setopt +o nomatch