Skip to content

Instantly share code, notes, and snippets.

@nickrttn
Last active March 15, 2020 12:51
Show Gist options
  • Save nickrttn/bee35281502e1b230d9e5a50728d37f9 to your computer and use it in GitHub Desktop.
Save nickrttn/bee35281502e1b230d9e5a50728d37f9 to your computer and use it in GitHub Desktop.
dotfiles
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Set the locale settings correctly
if [ -z "$LANG" ];
then export LANG="$(defaults read -g AppleLocale | sed 's/@.*$//g').UTF-8";
fi
# Set nano as the default editor
export EDITOR=nano
# Add yarn to PATH
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# The next line updates PATH for Netlify's Git Credential Helper.
if [ -f '/Users/nickrutten/.netlify/helper/path.zsh.inc' ];
then source '/Users/nickrutten/.netlify/helper/path.zsh.inc';
fi
source ~/.zplug/init.zsh
# Let zplug manage itself
zplug "zplug/zplug", hook-build:"zplug --self-manage"
# Load ZSH syntax highlighting (deferred until after compinit)
zplug "zsh-users/zsh-syntax-highlighting", defer:2
# Load ZSH History substring search (cycle through history with up arrow)
# This HAS to be loaded after zsh-syntax-highlighting
zplug "zsh-users/zsh-history-substring-search", defer:3
# Add ZSH auto suggestions
zplug "zsh-users/zsh-autosuggestions"
# Add ZSH completions
zplug "zsh-users/zsh-completions"
# Add prezto git plugin (must be loaded after utility module)
zplug "modules/git", from:prezto
# Add prezto history plugin
zplug "modules/history", from:prezto
# Add rupa/z
zplug "rupa/z", use:z.sh
# Load subnixr/minimal prompt
zplug "subnixr/minimal"
# Load completions installed with homebrew
zplug "/usr/local/share/zsh/site-functions", from:local, use:"*"
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Then, source plugins and add commands to $PATH
zplug load
# Add fnm to PATH
eval "$(fnm env --multi)"
# Set keybindings for history substring search
bindkey "^[[A" history-substring-search-up
bindkey "^[[B" history-substring-search-down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment