Skip to content

Instantly share code, notes, and snippets.

@outrowender
Last active March 29, 2024 15:33
Show Gist options
  • Save outrowender/81fa284d840e6e24af4b0b63c1435196 to your computer and use it in GitHub Desktop.
Save outrowender/81fa284d840e6e24af4b0b63c1435196 to your computer and use it in GitHub Desktop.
My Quick ZSH config (macOS)
# 1. Install Oh-my-zsh running:
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# 2. Run the following command:
# open -a TextEdit ~/.zshrc
# 3. Paste and replace this whole file in it, including comments.
# 4. Run:
# source ~/.zshrc
# 5. Run
# git clone https://github.com/zsh-users/zsh-autosuggestions $ZSHPLUGINS/zsh-autosuggestions
# DONE!
# export main folders for terminal
export ZSH="$HOME/.oh-my-zsh"
export ZSHPLUGINS="$ZSH/custom/plugins"
# set theme:
# https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="simple"
# Plugins:
# zsh-autosuggestions
source $ZSHPLUGINS/zsh-autosuggestions/zsh-autosuggestions.zsh
# enable plugins
plugins=(git zsh-autosuggestions)
# finnaly initialize oh-my-zsh
source $ZSH/oh-my-zsh.sh
# custom aliases
alias zshconfig="open -a TextEdit ~/.zshrc"
alias zshreload="source ~/.zshrc"
alias cls=clear
alias CLS=clear
alias xcode-clean="rm -rf ~/Library/Developer/Xcode/DerivedData"
# Setup your path from here:
# export PATH=$PATH:~/development/flutter/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment