26-07-2018
-add help for kymsu2 -cosmetic changes
This commit is contained in:
@@ -9,11 +9,12 @@ display_info=true
|
||||
# No distract mode (Casks with 'latest' version number won't be updated)
|
||||
no_distract=false
|
||||
|
||||
if [[ $1 == "nodistract" ]]; then
|
||||
if [[ $1 == "--nodistract" ]]; then
|
||||
no_distract=true
|
||||
fi
|
||||
|
||||
echo "🍺 Homebrew"
|
||||
echo -e "\033[1m🍺 Homebrew \033[0m"
|
||||
|
||||
brew update
|
||||
|
||||
echo ""
|
||||
@@ -107,7 +108,7 @@ brew doctor
|
||||
brew missing
|
||||
echo ""
|
||||
|
||||
if [[ $1 == "cleanup" ]]; then
|
||||
if [[ $1 == "--cleanup" ]]; then
|
||||
echo "🍺 Cleaning brewery"
|
||||
##brew cleanup -s
|
||||
brew cleanup --prune=30
|
||||
@@ -115,3 +116,5 @@ if [[ $1 == "cleanup" ]]; then
|
||||
brew cask cleanup --outdated
|
||||
echo ""
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
4
_mas.sh
4
_mas.sh
@@ -3,7 +3,8 @@
|
||||
# Mac Appstore plugin for KYMSU
|
||||
# https://github.com/welcoMattic/kymsu
|
||||
|
||||
echo "🍏 Mac App Store updates come fast as lightning"
|
||||
echo -e "\033[1m🍏 Mac App Store updates come fast as lightning \033[0m"
|
||||
|
||||
#mas outdated
|
||||
massy=`mas outdated`
|
||||
echo ""
|
||||
@@ -27,3 +28,4 @@ else
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
17
_npm.sh
17
_npm.sh
@@ -16,15 +16,20 @@
|
||||
|
||||
# https://github.com/npm/npm/issues/17744
|
||||
|
||||
echo " 🌿 npm"
|
||||
cd /Users/bruno/Sites/node_modules/
|
||||
npm ls
|
||||
npm outdated
|
||||
npm outdated | awk '{print $1}' | xargs npm update
|
||||
echo -e "\033[1m🌿 npm \033[0m"
|
||||
echo ""
|
||||
|
||||
if [[ $1 == "npm_cleanup" ]]; then
|
||||
cd /Users/bruno/Sites/node_modules/
|
||||
echo -e "\033[4mInstalled scripts:\033[0m"
|
||||
npm ls
|
||||
outdated=$(npm outdated)
|
||||
echo "$outdated" | awk '{print $1}' | xargs npm update
|
||||
echo ""
|
||||
|
||||
if [[ $1 == "--npm_cleanup" ]]; then
|
||||
echo "🌬 Cleaning npm cache"
|
||||
npm cache clean
|
||||
echo ""
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
7
_pip.sh
7
_pip.sh
@@ -12,7 +12,7 @@ no_distract=false
|
||||
#add module to do_not_update array
|
||||
declare -a do_not_update=( "tornado","urllib3")
|
||||
|
||||
if [[ $1 == "nodistract" ]]; then
|
||||
if [[ $1 == "--nodistract" ]]; then
|
||||
no_distract=true
|
||||
fi
|
||||
|
||||
@@ -21,8 +21,8 @@ if ! [ -x "$(command -v $version)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "🐍 Update $version (Python 3)"
|
||||
echo -e "\033[1m🐍 $version (Python 3) \033[0m"
|
||||
|
||||
echo ""
|
||||
$version install --upgrade pip
|
||||
echo ""
|
||||
@@ -88,3 +88,4 @@ else
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
3
atom.sh
3
atom.sh
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
echo "⚛️ Atom editor will be shiny when you'll be back from your coffee/tea break!"
|
||||
echo -e "\033[1m⚛️ Atom editor will be shiny when you'll be back from your coffee/tea break! \033[0m"
|
||||
|
||||
if hash apm-beta 2>/dev/null; then
|
||||
apm-beta upgrade -c false
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user