readme
This commit is contained in:
39
README (original).md
Normal file
39
README (original).md
Normal file
@@ -0,0 +1,39 @@
|
||||
# KYMSU
|
||||
Keep Your macOs Stuff Updated (KYMSU)
|
||||
|
||||
> Get your Homebrew, Mac App Store, Atom Package Manager (apm), npm, yarn, composer, rustup ... stuff updated.
|
||||
|
||||
## Requirements
|
||||
|
||||
- [Homebrew](https://brew.sh)
|
||||
|
||||
## Installation
|
||||
|
||||
`$ git clone git@github.com:welcoMattic/kymsu.git && cd kymsu && ./install.sh`
|
||||
|
||||
## Usage
|
||||
|
||||
Only update all the things
|
||||
`$ kymsu`
|
||||
|
||||
With cleanup after updates
|
||||
`$ kymsu cleanup`
|
||||
|
||||
## Plugins system
|
||||
|
||||
All default plugins are placed in `~/.kymsu/plugins.d`, feel free to delete those you don't use, and/or add new ones.
|
||||
Don't forget to share them here with a shiny pull request! ✨
|
||||
|
||||
## Auto-update
|
||||
|
||||
KYMSU will auto-update itself each time you run `kymsu` command.
|
||||
|
||||
## Credits
|
||||
|
||||
* [All contributors](https://github.com/welcomattic/kymsu/graphs/contributors)
|
||||
* Thanks to [@waxzce](https://github.com/waxzce) for his [article](https://medium.com/@waxzce/keeping-macos-clean-this-is-my-osx-brew-update-cli-command-6c8f12dc1731) about keeping macOs clean!
|
||||
|
||||
## License
|
||||
|
||||
KYMSU is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
||||
for details.
|
||||
49
README.md
49
README.md
@@ -1,39 +1,42 @@
|
||||
# KYMSU
|
||||
Keep Your macOs Stuff Updated (KYMSU)
|
||||
# altKYMSU
|
||||
altKYMSU is a fork from **KYMSU** (Keep Your macOs Stuff Updated)
|
||||
https://github.com/welcoMattic/kymsu
|
||||
|
||||
> Get your Homebrew, Mac App Store, Atom Package Manager (apm), npm, yarn, composer, rustup ... stuff updated.
|
||||
|
||||
## Requirements
|
||||
|
||||
- [Homebrew](https://brew.sh)
|
||||
### Plug-ins:
|
||||
|
||||
## Installation
|
||||
- **atom** (plug-ins)
|
||||
- **homebrew** (brew and cask)
|
||||
- **installed** (create a list of all your brew, pip, npm... stuffs).
|
||||
- **npm** (javascript package) (local or global package)
|
||||
- **mas** (Mac Appstore) plugin for KYMSU
|
||||
- **pip** (Python Package index) (pip or pip3)
|
||||
- **PECL** (PHP modules)
|
||||
- **Wordpress** (wp-cli) (for testing only)
|
||||
|
||||
`$ git clone git@github.com:welcoMattic/kymsu.git && cd kymsu && ./install.sh`
|
||||
|
||||
## Usage
|
||||
|
||||
Only update all the things
|
||||
`$ kymsu`
|
||||
### Requirements
|
||||
|
||||
With cleanup after updates
|
||||
`$ kymsu cleanup`
|
||||
- [Homebrew](https://brew.sh/)
|
||||
- [pipdeptree](https://pypi.python.org/pypi/pipdeptree) for checking dependancies (pip plugin)
|
||||
|
||||
## Plugins system
|
||||
|
||||
All default plugins are placed in `~/.kymsu/plugins.d`, feel free to delete those you don't use, and/or add new ones.
|
||||
Don't forget to share them here with a shiny pull request! ✨
|
||||
|
||||
## Auto-update
|
||||
### Installation
|
||||
|
||||
KYMSU will auto-update itself each time you run `kymsu` command.
|
||||
`$ git clone git@github.com:Bruno21/kymsu.git && cd kymsu && ./install.sh`
|
||||
|
||||
## Credits
|
||||
|
||||
* [All contributors](https://github.com/welcomattic/kymsu/graphs/contributors)
|
||||
* Thanks to [@waxzce](https://github.com/waxzce) for his [article](https://medium.com/@waxzce/keeping-macos-clean-this-is-my-osx-brew-update-cli-command-6c8f12dc1731) about keeping macOs clean!
|
||||
|
||||
## License
|
||||
### Credit
|
||||
|
||||
All credit goes to [welcoMattic](https://github.com/welcoMattic/kymsu)
|
||||
|
||||
|
||||
|
||||
### License
|
||||
|
||||
Same as KYMSU (MIT)
|
||||
|
||||
KYMSU is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
||||
for details.
|
||||
|
||||
32
README2.md
32
README2.md
@@ -1,32 +0,0 @@
|
||||
# Plugins KYMSU
|
||||
Plugins KYMSU (Keep Your macOs Stuff Updated)
|
||||
https://github.com/welcoMattic/kymsu
|
||||
|
||||
|
||||
|
||||
- **npm** (javascript package) plugin for KYMSU (install local package)
|
||||
- **mas** (Mac Appstore) plugin for KYMSU
|
||||
- **Homebrew** plugin for KYMSU
|
||||
brew and cask
|
||||
- **pip** (Python Package index) plugin for KYMSU
|
||||
pip or pip3
|
||||
|
||||
|
||||
|
||||
### Requirements
|
||||
|
||||
- [KYMSU](https://github.com/welcoMattic/kymsu)
|
||||
- [pipdeptree](https://pypi.python.org/pypi/pipdeptree) for checking dependancies (pip plugin)
|
||||
|
||||
|
||||
|
||||
### Installation
|
||||
|
||||
Copy the plugins in `~/.kymsu/plugins.d`
|
||||
|
||||
|
||||
|
||||
### License
|
||||
|
||||
Same as KYMSU
|
||||
|
||||
141
plugins.d/_installed.sh
Executable file
141
plugins.d/_installed.sh
Executable file
@@ -0,0 +1,141 @@
|
||||
#!/bin/bash
|
||||
|
||||
# List of brew, cask, mas, python, npm installed...
|
||||
|
||||
|
||||
echo ''
|
||||
|
||||
# npm local install
|
||||
local_path=/Users/bruno/Sites/node_modules/
|
||||
chemin=$(pwd)
|
||||
|
||||
if [ -f Installed.md ]; then
|
||||
echo -e "The file \033[93mInstalled.md\033[0m already exist! We erase it."
|
||||
rm Installed.md
|
||||
fi
|
||||
|
||||
echo '# Apps, package, scripts installed:' > Installed.md
|
||||
echo '' >> Installed.md
|
||||
|
||||
|
||||
# Homebrew
|
||||
|
||||
echo '## Homebrew' >> Installed.md
|
||||
echo '' >> Installed.md
|
||||
|
||||
echo -e "🍺 Get Homebrew \033[3m\033[93mtap\033[0m list"
|
||||
|
||||
echo '### Tap:' >> Installed.md
|
||||
tap=$(brew tap)
|
||||
echo "$tap" >> Installed.md
|
||||
echo "" >> Installed.md
|
||||
|
||||
echo -e "🍺 Get Homebrew \033[3m\033[93mpackages\033[0m installed list"
|
||||
|
||||
echo '### Packages:' >> Installed.md
|
||||
brew=$(brew list)
|
||||
echo "$brew" >> Installed.md
|
||||
echo "" >> Installed.md
|
||||
|
||||
echo -e "🍺 Get Homebrew \033[3m\033[93mCask\033[0m installed list"
|
||||
|
||||
echo '### Casks:' >> Installed.md
|
||||
cask=$(brew cask list)
|
||||
echo "$cask" >> Installed.md
|
||||
echo "" >> Installed.md
|
||||
|
||||
|
||||
|
||||
# liste des apps de l'Appstore installées (nom & numéro)
|
||||
|
||||
echo -e "🍏 Get mas \033[3m\033[93mApp Storeapplications\033[0m list"
|
||||
|
||||
echo '## mas (Mac App Store)' >> Installed.md
|
||||
echo '' >> Installed.md
|
||||
|
||||
appfrommas=$(mas list)
|
||||
#echo "$appfrommas"
|
||||
#declare -a appstore
|
||||
|
||||
# todo: trier la liste par nom
|
||||
while read -r line; do
|
||||
number=$(echo "$line" | awk '{print $1}')
|
||||
name=$(echo "$line" | awk -F "(" '{print $1}' | awk {'first = $1; $1=""; print $0'} | sed 's/^ //g')
|
||||
echo "$name ($number)" >> Installed.md
|
||||
#echo " " >> Installed.md
|
||||
#appstore["$name"]="${number}"
|
||||
done <<< "$appfrommas"
|
||||
echo "" >> Installed.md
|
||||
|
||||
|
||||
# Extensions PHP PECL
|
||||
|
||||
echo -e "🐘 Get PECL \033[3m\033[93mPHP extensions\033[0m list"
|
||||
|
||||
echo '## PECL extensions' >> Installed.md
|
||||
echo '' >> Installed.md
|
||||
|
||||
ext_pecl=$(pecl list | sed '1,3d' | awk '{print $1}')
|
||||
echo "$ext_pecl" >> Installed.md
|
||||
echo "" >> Installed.md
|
||||
|
||||
|
||||
# Python packages (pip)
|
||||
|
||||
echo -e "🐍 Get pip \033[3m\033[93mPython 3 packages\033[0m installed list"
|
||||
echo '## Python packages' >> Installed.md
|
||||
echo '' >> Installed.md
|
||||
|
||||
pip_packages=$(pip list | sed '1,2d' | awk '{print $1}')
|
||||
echo "$pip_packages" >> Installed.md
|
||||
echo '' >> Installed.md
|
||||
|
||||
|
||||
# atom
|
||||
|
||||
echo -e "⚛️ Get \033[3m\033[93mAtom editor packages\033[0m installed list"
|
||||
echo '## Atom packages' >> Installed.md
|
||||
echo '' >> Installed.md
|
||||
|
||||
atom=$(apm list | grep 'Community Packages' -A 100 | sed '1,1d')
|
||||
|
||||
while read -r line; do
|
||||
a=$(echo "$line" | awk -F "@" '{print $1}')
|
||||
atom_pkg=${a:4}
|
||||
echo "$atom_pkg" >> "$chemin/Installed.md"
|
||||
done <<< "$atom"
|
||||
echo '' >> Installed.md
|
||||
|
||||
|
||||
# Node.js packages (npm)
|
||||
|
||||
echo '## Node.js packages' >> Installed.md
|
||||
echo '' >> Installed.md
|
||||
|
||||
echo -e "🌿 Get npm \033[3m\033[93m node global packages\033[0m installed scripts"
|
||||
echo '### Global:' >> Installed.md
|
||||
|
||||
pkg_global_npm=$(npm list -g --depth=0 --silent | sed '1,2d' | awk '{print $2}' | awk -F "@" '{print $1}')
|
||||
echo "$pkg_global_npm" >> Installed.md
|
||||
|
||||
#echo "$local_path"
|
||||
if [ -d "$local_path" ]; then
|
||||
cd $local_path
|
||||
|
||||
echo -e "🌿 Get npm \033[3m\033[93m node local packages\033[0m installed scripts"
|
||||
echo '### Local:' >> "$chemin/Installed.md"
|
||||
|
||||
pkg_local=$(npm ls | sed '1,1d' | grep -v 'deduped')
|
||||
|
||||
while read -r line; do
|
||||
a=$(echo "$line" | awk -F "@" '{print $1}')
|
||||
pkg_local_npm=${a:4}
|
||||
echo "$pkg_local_npm" >> "$chemin/Installed.md"
|
||||
done <<< "$pkg_local"
|
||||
|
||||
cd $chemin
|
||||
fi
|
||||
|
||||
echo "" >> Installed.md
|
||||
|
||||
|
||||
Reference in New Issue
Block a user