mkbuid - brew-list
mkbuild.sh: build Mkdocs for Python 3 brew-list.sh: crée une liste des packages et des casks installés
This commit is contained in:
38
brew-list.sh
Executable file
38
brew-list.sh
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
<<COMMENT
|
||||
underline=`tput smul`
|
||||
nounderline=`tput rmul`
|
||||
bold=`tput bold`
|
||||
normal=`tput sgr0`
|
||||
echo "toto"
|
||||
|
||||
echo -e "\033[1m bold \033[0m"
|
||||
echo -e "\033[3m italic \033[0m"
|
||||
echo -e "\033[1;3;31m Red bold+italic \033[0m"
|
||||
echo -e "\033[4m underline \033[0m"
|
||||
echo -e "\033[9m strikethrough \033[0m"
|
||||
echo -e "\033[31m Red World \033[0m"
|
||||
echo -e "\033[32m Green World \033[0m"
|
||||
COMMENT
|
||||
|
||||
|
||||
if [ -f brew-install.sh ]; then
|
||||
echo -e "Le fichier \033[1mbrew-install.sh\033[0m existe déjà! On l'efface."
|
||||
#echo "Le fichier ${bold}brew-install.sh${normal} existe déjà! On l'efface."
|
||||
rm brew-install.sh
|
||||
fi
|
||||
|
||||
echo '#!/bin/bash' >> brew-install.sh
|
||||
|
||||
echo -e "\n# Brew packages that I use alot.\n" >> brew-install.sh
|
||||
echo -e "🍺 Get Homebrew \033[3mpackages\033[0m installed list"
|
||||
brew list | sed -e 's/^/brew install /' >> brew-install.sh
|
||||
|
||||
echo -e "\n# Some cask packages that I like.\n" >> brew-install.sh
|
||||
echo -e "🍺 Get Homebrew \033[3mCask\033[0m installed list"
|
||||
brew cask list | sed -e 's/^/brew cask install /' >> brew-install.sh
|
||||
|
||||
chmod +x brew-install.sh
|
||||
|
||||
terminal-notifier -title 'brew-list' -message 'Liste packages & casks créee !' -sound 'Glass'
|
||||
Reference in New Issue
Block a user