Skip to content

Instantly share code, notes, and snippets.

@dwyn

dwyn/zshrc

Forked from LukeSmithxyz/zshrc
Last active May 10, 2020
Embed
What would you like to do?
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/dharmon/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="spaceship"
# "miloshadzic" <-- love this theme
# spaceship
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
HIST_STAMPS="dd.mm.yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
git-flow
rails
vscode
colorize
osx
zsh-syntax-highlighting
)
# For Heroku autocomplete?
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
fi
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
export LANG=en_US.UTF-8
# z extension for browsing
# . ~/z.sh
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='mvim'
fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
alias update="source ~/.zshrc"
alias gs="git status"
alias pancakes="git status"
alias lo="learn open"
alias ga="git add -A"
alias gu="git add -u"
alias gc="git clone --recursive"
alias gcc="git commit -am"
alias gcnm="git commit --allow-empty-message -m ''"
alias gp="git push -u origin master"
alias cpwd="printf '%s\n' "${PWD##*/}" | pbcopy && echo 'Copied😊 !'"
alias showme="basename "$PWD" | pbcopy && echo 'Copied😊'"
alias zshrc="code ~/.zshrc" # Quick access to the ~/.zshrc file
alias ll="la -lah" # List the things
alias mmncs="mix meditate --no-clear-screen" # Mix Meditate No Clear Screen
alias students="cd /Users/$USERNAME/Development/Flatiron/Students" # change directory to /Users/dwyn/Development/sc/students
alias sgs="cd /Users/$USERNAME/Development/Flatiron/SGs" # change directory to /Users/dwyn/Development/sc/sgs
alias code.2="cd /Users/$USERNAME/Development/code.2" # change directory to /Users/dwyn/Development/code.2
alias gatsbyup="npm i -g gatsby-cli" # update gatsby cli with npm i -g gatsby-cli
alias gd="gatsby develop"
# https://the.exa.website/features/tree-view
alias tree="exa --tree --level=2" # update gatsby cli with npm i -g gatsby-cli
# https://getantibody.github.io/usage/
# WE SWITCHING TO THIS??
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_completionexport PATH="/usr/local/sbin:$PATH"
# test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"export PATH="/usr/local/sbin:$PATH"
export PATH="$PATH:/path/to/elixir/bin"
# iTerm stuff?
# source ~/.iterm2_shell_integration.zshexport PATH="/usr/local/opt/ncurses/bin:$PATH"
# Zsh stuff? I think?
# ncurses is keg-only, which means it was not symlinked into /usr/local,
# because macOS already provides this software and installing another version in
# parallel can cause all kinds of trouble.
# If you need to have ncurses first in your PATH run:
export PATH="/usr/local/opt/ncurses/bin:$PATH"
# For compilers to find ncurses you may need to set:
export LDFLAGS="-L/usr/local/opt/ncurses/lib"
export CPPFLAGS="-I/usr/local/opt/ncurses/include"
# For pkg-config to find ncurses you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig"
# For Bash or Zsh, put something like this in your $HOME/.bashrc or $HOME/.zshrc:
# z installation (after `running brew install z`)
. $(brew --prefix)/etc/profile.d/z.sh
# Loving EXA!
# https://the.exa.website/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment