2 Commits

Author SHA1 Message Date
2bb6671836 installed.sh
-les fichiers Brewfile_* vieux de plus de 10 jours sont supprimés
-la section paquets Atom est désormais optionnelle
2025-04-17 09:31:08 +02:00
ea87685dde venv.sh
soco-cli est désormais installé avec pipx
2025-04-17 09:26:37 +02:00
2 changed files with 29 additions and 21 deletions

View File

@@ -14,12 +14,14 @@ chemin=$HOME/Documents/kymsu
#version: pip ou pip3 #version: pip ou pip3
pip_version=pip3 pip_version=pip3
# #
# https://github.com/atom/apm/tags
apm=false
######################################### #########################################
#if [ ! -d chemin ]; then mkdir $chemin; fi #if [ ! -d chemin ]; then mkdir $chemin; fi
mkdir -p $chemin mkdir -p $chemin
now=$(date +"%d-%m-%Y_%T") now=$(date +"%d-%m-%Y_%T" | sed 's/://g')
mac=$(hostname -s) mac=$(hostname -s)
file=$mac"@"$now file=$mac"@"$now
filename="Installed_$file" filename="Installed_$file"
@@ -152,6 +154,7 @@ echo ''
# atom # atom
if [ "$apm" = "true" ]; then
echo -e "⚛️ Get \033[3m\033[93mAtom editor packages\033[0m installed list" echo -e "⚛️ Get \033[3m\033[93mAtom editor packages\033[0m installed list"
atom=$(apm list | grep 'Community Packages' -A 100 | sed '1,1d') atom=$(apm list | grep 'Community Packages' -A 100 | sed '1,1d')
{ {
@@ -169,7 +172,7 @@ echo "\`\`\`"
echo "" echo ""
echo '' echo ''
} >> $chemin/Installed.md } >> $chemin/Installed.md
fi
# Node.js packages (npm) # Node.js packages (npm)
echo -e "🌿 Get npm \033[3m\033[93m node global packages\033[0m installed scripts" echo -e "🌿 Get npm \033[3m\033[93m node global packages\033[0m installed scripts"
@@ -235,11 +238,16 @@ echo ''
echo -e "🍺 Create a \033[3m\033[93mBrewfile\033[0m:" echo -e "🍺 Create a \033[3m\033[93mBrewfile\033[0m:"
echo "list all of the installed brew packages, cask applications, and Mac App Store applications currently on the machine..." echo "list all of the installed brew packages, cask applications, and Mac App Store applications currently on the machine..."
brew bundle dump brew bundle dump
echo '' echo -e "To restore everything listed in that file, run \033[3m\033[93m'brew bundle'\033[0m in folder that contains the Brewfile."
echo -e "To restore everything listed in that file, run \033[3m\033[93m'$ brew bundle'\033[0m in folder that contains the Brewfile."
echo '' echo ''
mv Brewfile "$chemin/Brewfile" mv $chemin/Brewfile "$chemin/Brewfile_$file".md
y=$(find . -type f -name 'Brewfile*' -mtime +10 -maxdepth 1)
if [ -n "$y" ]; then
nb=$(echo "$y" | wc -l)
echo "$y" | xargs rm
[ $? ] && echo -e "\033[93m$nb Brewfile_*\033[0m files removed !"
fi
#iconv -f macroman -t utf-8 Installed.md > Installed-utf8.md #iconv -f macroman -t utf-8 Installed.md > Installed-utf8.md
#mv Installed-utf8.md "$filename".md #mv Installed-utf8.md "$filename".md

View File

@@ -18,7 +18,7 @@ reset="\033[0m"
# Liste des apps: # Liste des apps:
# - le venv doit avoir le même nom que l'app # - le venv doit avoir le même nom que l'app
declare -a apps=("soco-cli" "mkdocs") declare -a apps=("mkdocs")
# Liste des extensions pour Mkdocs # Liste des extensions pour Mkdocs
mkdocs_ext=("mkdocs-material" "mkdocs-material-extensions" "mkdocs-git-revision-date-localized-plugin" "mkdocs-minify-plugin" "fontawesome_markdown" "mkdocs-pdf-export-plugin") mkdocs_ext=("mkdocs-material" "mkdocs-material-extensions" "mkdocs-git-revision-date-localized-plugin" "mkdocs-minify-plugin" "fontawesome_markdown" "mkdocs-pdf-export-plugin")