add moro, cli productivity tool

This commit is contained in:
MorganGeek 2020-07-03 07:19:29 +02:00
parent eaa45cff1e
commit 325c6849e5
2 changed files with 71 additions and 68 deletions

View File

@ -10,23 +10,23 @@ chmod +x ~/.scripts/*.sh
# Install missing package (Linux) # Install missing package (Linux)
case "$(uname -s)" in case "$(uname -s)" in
Linux) Linux)
echo "(Linux) Installing Development Tools" echo "(Linux) Installing Development Tools"
yum install sudo -y yum install sudo -y
sudo yum groupinstall 'Development Tools' -y sudo yum groupinstall 'Development Tools' -y
sudo yum install git which zip unzip ruby curl file docker gcc make libxcrypt-compat vim-enhanced -y sudo yum install git which zip unzip ruby curl file docker gcc make libxcrypt-compat vim-enhanced -y
;; ;;
esac esac
# Install HomeBrew # Install HomeBrew
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
echo "(Mac OS X) installing homebrew" echo "(Mac OS X) installing homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Prevent `Error: Your Homebrew is outdated. Please run `brew update`.` # Prevent `Error: Your Homebrew is outdated. Please run `brew update`.`
echo "Updating Homebrew" echo "Updating Homebrew"
brew update brew update
;; ;;
esac esac
# Path to ruby # Path to ruby
@ -68,32 +68,32 @@ ln -snf ~/Code/dotfiles/private_dot_config/wtf ~/.config/wtf
# Other symblinks + Install Docker Desktop for Mac # Other symblinks + Install Docker Desktop for Mac
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
echo "(Mac OS X) Adding symbolic links" echo "(Mac OS X) Adding symbolic links"
ln -snf "$HOME/.config/Code/User/settings.json" "$HOME/Library/Application Support/Code/User/settings.json" ln -snf "$HOME/.config/Code/User/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/Code/User/snippets" "$HOME/Library/Application Support/Code/User/snippets" ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/Code/User/snippets" "$HOME/Library/Application Support/Code/User/snippets"
ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/.mackup.cfg" "$HOME/.mackup.cfg" ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/.mackup.cfg" "$HOME/.mackup.cfg"
echo "(Mac OS X) Installing Docker" echo "(Mac OS X) Installing Docker"
~/.scripts/install_docker_for_mac.sh ~/.scripts/install_docker_for_mac.sh
;; ;;
esac esac
# Install dependencies (apps, fonts, ...) with Brew # Install dependencies (apps, fonts, ...) with Brew
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
echo "(Mac OS X) Brew installing stuff (apps, fonts, ...)" echo "(Mac OS X) Brew installing stuff (apps, fonts, ...)"
ln -snf ~/Code/dotfiles/Brewfile ~/Brewfile ln -snf ~/Code/dotfiles/Brewfile ~/Brewfile
brew bundle brew bundle
;; ;;
esac esac
# Install dependencies (apps, fonts, ...) for CentOS # Install dependencies (apps, fonts, ...) for CentOS
case "$(uname -s)" in case "$(uname -s)" in
Linux) Linux)
echo "(CentOS) Installing stuff (apps, ...)" echo "(CentOS) Installing stuff (apps, ...)"
chmod +x ~/Code/dotfiles/centos.sh chmod +x ~/Code/dotfiles/centos.sh
~/Code/dotfiles/centos.sh ~/Code/dotfiles/centos.sh
;; ;;
esac esac
# Switch to ZSH # Switch to ZSH
@ -114,16 +114,16 @@ echo "SDKMan updating"
sdk selfupdate sdk selfupdate
case "$(uname -s)" in case "$(uname -s)" in
Linux) Linux)
echo '(Linux) Installing ruby' echo '(Linux) Installing ruby'
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import - curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh source /etc/profile.d/rvm.sh
rvm reload rvm reload
rvm requirements run rvm requirements run
rvm install 2.3.7 rvm install 2.3.7
;; ;;
esac esac
# Install bundler for managing ruby dependencies and Gemfile # Install bundler for managing ruby dependencies and Gemfile
@ -160,10 +160,10 @@ cd "$HOME" || exit
# OSX Defaults # OSX Defaults
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
echo "(Mac OS X) Loading preferences" echo "(Mac OS X) Loading preferences"
sudo sh .macos sudo sh .macos
;; ;;
esac esac
# Customize /etc/hosts # Customize /etc/hosts
@ -177,11 +177,11 @@ sudo pip install --upgrade pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py sudo python3 get-pip.py
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
echo "(Mac OS X) Updating PATH for loading pip user installed packages" echo "(Mac OS X) Updating PATH for loading pip user installed packages"
ln -snf /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/pip pip3 ln -snf /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/pip pip3
export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin" export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin"
;; ;;
esac esac
echo "Upgrading pip" echo "Upgrading pip"
sudo pip install --upgrade pip sudo pip install --upgrade pip
@ -194,19 +194,19 @@ pip install -r requirements.txt
# Install baton (CLI to manage Spotify playback) https://github.com/joshuathompson/baton # Install baton (CLI to manage Spotify playback) https://github.com/joshuathompson/baton
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
echo '(Mac OS X) Installing baton (spotify CLI)' echo '(Mac OS X) Installing baton (spotify CLI)'
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-darwin-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-darwin-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
;; ;;
Linux) Linux)
echo '(Linux) Installing baton (spotify CLI)' echo '(Linux) Installing baton (spotify CLI)'
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-linux-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-linux-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
;; ;;
*) *)
echo 'Non supported OS : Installation aborted for baton (spotify CLI)' echo 'Non supported OS : Installation aborted for baton (spotify CLI)'
exit exit
;; ;;
esac esac
# Use rustup to install the Rust compiler (rustc) and the Rust package manager (cargo). # Use rustup to install the Rust compiler (rustc) and the Rust package manager (cargo).
@ -216,6 +216,8 @@ rustup component add rustfmt
# Install pa11y tool for local webpage accessibility analysis # Install pa11y tool for local webpage accessibility analysis
echo "Installing pa11y tool for local webpage accessibility analysis" echo "Installing pa11y tool for local webpage accessibility analysis"
npm install -g pa11y npm install -g pa11y
echo "Installing moro, a productivity CLI tool"
npm install -g moro
git clone https://github.com/sherlock-project/sherlock.git ~/Code/sherlock git clone https://github.com/sherlock-project/sherlock.git ~/Code/sherlock
cd sherlock || exit cd sherlock || exit

View File

@ -5,12 +5,12 @@ sdk selfupdate
# Upgrading HomeBrew stuff # Upgrading HomeBrew stuff
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
echo "(Mac OS X) Homebrew upgrading stuff" echo "(Mac OS X) Homebrew upgrading stuff"
brew update brew update
#brew upgrade #brew upgrade
brew outdated | xargs brew upgrade brew outdated | xargs brew upgrade
;; ;;
esac esac
bundle update --all bundle update --all
@ -24,3 +24,4 @@ pip freeze >~/requirements.txt
# Update VIM plugins installed via Vundle https://github.com/VundleVim/Vundle.vim # Update VIM plugins installed via Vundle https://github.com/VundleVim/Vundle.vim
vim +PluginUpdate +qall >/dev/null vim +PluginUpdate +qall >/dev/null
rustup-update rustup-update
npm update -g moro