Last active
January 3, 2023 13:51
-
-
Save schnoggo/c75b0df65aa55467cf8fcb6b861d90f4 to your computer and use it in GitHub Desktop.
My current .zshrc for MacOS Terminal
This file contains 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
# ___ _ _ _ __ _ _ __ | |
# / _ \ _ _ __ _| (_) |_ _ _ ___ / _| | (_)/ _|___ | |
# | (_) | || / _` | | | _| || | / _ \ _| | | | _/ -_) | |
# \__\_\\_,_\__,_|_|_|\__|\_, | \___/_| |_|_|_| \___| | |
# |__/ | |
# ornament listings (Add sybbols for directories, etc.: | |
alias ls="ls -aF" | |
# Short prompt: | |
# Learn to customize at https://www.makeuseof.com/customize-zsh-prompt-macos-terminal/ | |
# or use an online generator | |
PROMPT='%B%2~ %#%b ' | |
# Octal permissions of a file: | |
alias ostat='stat -f "%OLp"' | |
# Turn off compinit warnings on recent MacOS | |
ZSH_DISABLE_COMPFIX="true" | |
# History: | |
# In zsh 'history' is just an alias for 'fc -l' | |
# Info on the manpage. https://linux.die.net/man/1/zshbuiltins | |
# Make it huge | |
export HISTFILESIZE=10000 | |
export HISTSIZE=10000 | |
export HISTFILE=~/.zsh_history | |
setopt HIST_FIND_NO_DUPS | |
setopt INC_APPEND_HISTORY | |
export HISTTIMEFORMAT="[%F %T] " | |
setopt EXTENDED_HISTORY | |
# ___ _ _ | |
# | \ _____ _____| |___ _ __ _ __ ___ _ _| |_ | |
# | |) / -_) V / -_) / _ \ '_ \ ' \/ -_) ' \ _| | |
# |___/\___|\_/\___|_\___/ .__/_|_|_\___|_||_\__| | |
# |_| | |
# Mac-based development using Homebrew https://brew.sh/ | |
# The usual path stuff for Mac Homebrew: | |
export PATH="/usr/local/sbin:$PATH" | |
export PATH="/usr/local/opt/[email protected]/bin:$PATH" | |
export PATH="/usr/local/opt/[email protected]/sbin:$PATH" | |
# Git | |
# Git Root - cd to root of current repo | |
alias gr='cd $(git rev-parse --show-toplevel)' | |
# Node: | |
export PATH=~/.npm-global/bin:$PATH | |
# Node version manager: | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# Gatsby dev: https://www.gatsbyjs.com/docs | |
export NODE_OPTIONS=--openssl-legacy-provider | |
# Python environment manager https://github.com/pyenv/pyenv | |
# I installed via homebrew. https://formulae.brew.sh/formula/pyenv | |
# Note the python version number in the following lines. | |
export PATH="$HOME/.composer/vendor/bin:$HOME/Library/Python/2.7/bin:$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment