Skip to content

Instantly share code, notes, and snippets.

@nickrttn
Last active January 9, 2022 11:00
Show Gist options
  • Save nickrttn/19589c61543da88d222e5dd5cc939552 to your computer and use it in GitHub Desktop.
Save nickrttn/19589c61543da88d222e5dd5cc939552 to your computer and use it in GitHub Desktop.
dotfiles
export ZSH_AUTOSUGGEST_USE_ASYNC=1
export ZPLUG_USE_CACHE=true
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
source ~/.zplug/init.zsh
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
zplug "rupa/z", use:"z.sh"
zplug "mattmc3/zsh-safe-rm"
zplug "willghatch/zsh-saneopt"
zplug "asdf-vm/asdf", use:"asdf.sh"
zplug "zdharma-continuum/fast-syntax-highlighting"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-autosuggestions"
zplug "modules/helper", from:"prezto"
zplug "modules/git", from:"prezto"
zplug "zsh-users/zsh-completions", defer:2
# 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
zplug load
test -e /Users/nick/.iterm2_shell_integration.zsh && source /Users/nick/.iterm2_shell_integration.zsh || true
test -e /Users/nick/.config/npm-completion.sh && source /Users/nick/.config/npm-completion.sh || true
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
eval "$(starship init zsh)"
# Minimal left prompt
format = """$character"""
command_timeout = 2000
# Move the rest of the prompt to the right
right_format = """
$git_branch\
$git_commit\
$git_state\
$git_status\
$directory\
$hostname\
$line_break\
$status\
"""
[character]
success_symbol = "[λ](green)"
error_symbol = "[λ](red)"
[directory]
truncation_length = 2
style = "fg:242"
[git_branch]
format="[$symbol$branch]($style) "
symbol = ""
style="green"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment