/.../
: Start and end regex delimiters|
: Alternation()
: Grouping
π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
1. Install homebrew
# Install zsh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.bash)"
# Check it's installed properly
brew doctor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AltTab.app | |
AppCleaner.app | |
Blip.app | |
Cleaner-App.app | |
Dozer.app | |
Dropzone 4.app | |
Kap.app | |
MacUpdater.app | |
Microsoft Edge.app | |
Microsoft Excel.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
One Hunter Theme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |