βΉοΈ Before installing Apache-Spark, ensure that you have Python and Homebrew installed in your system.
# Install Java
brew install java
# Check Java version| # Setting PATH for Homebrew | |
| eval "$(/opt/homebrew/bin/brew shellenv)" | |
| # Setting PATH for Python | |
| export PATH="$(brew --prefix python)/libexec/bin:$PATH" | |
| # Setting PATH for OpenJDK | |
| export PATH="/opt/homebrew/opt/openjdk/bin:$PATH" | |
| # Setting PATH for Apache Spark |
| One Hunter Theme |
| AltTab.app | |
| AppCleaner.app | |
| Blip.app | |
| Cleaner-App.app | |
| Dozer.app | |
| Dropzone 4.app | |
| Kap.app | |
| MacUpdater.app | |
| Microsoft Edge.app | |
| Microsoft Excel.app |
| # List files in a folder | |
| # ------------------------------------------------------------------------------- | |
| list_files_and_export() { | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: list_files_and_export <directory>" | |
| return 1 | |
| fi | |
| local dir="$1" |
| alias mkvenv="virtualenv venv" | |
| alias entervenv='source venv/bin/activate && where python3' | |
| alias py="pip3 install -r requirements.txt" | |
| alias pyfreeze="pip3 freeze > requirements.txt" | |
| alias pyinit="mkvenv && venv >> .gitignore" | |
| alias deletecrap="find . -name '.DS_Store' -type f -delete" | |
| alias listapps="ls /Applications | pbcopy" | |
| alias updateall="brew update && brew upgrade" |
# Install zsh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.bash)"
# Check it's installed properly
brew doctor| # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
| # Initialization code that may require console input (password prompts, [y/n] | |
| # confirmations, etc.) must go above this block; everything else may go below. | |
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH |