Skip to content

Instantly share code, notes, and snippets.

@vitaly-pushkar
Created September 27, 2020 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitaly-pushkar/47f0b7ecb0a6e3458de9b7116a6c010d to your computer and use it in GitHub Desktop.
Save vitaly-pushkar/47f0b7ecb0a6e3458de9b7116a6c010d to your computer and use it in GitHub Desktop.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source "${HOME}/.zgen/zgen.zsh"
#if the init script doesn't exist
if ! zgen saved; then
# specify plugins here
zgen oh-my-zsh
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/sudo
zgen oh-my-zsh plugins/asdf
zgen oh-my-zsh plugins/bundler
zgen oh-my-zsh plugins/colored-man-pages
zgen oh-my-zsh plugins/colorize
zgen oh-my-zsh plugins/extract
zgen oh-my-zsh plugins/fzf
zgen oh-my-zsh plugins/httpie
zgen oh-my-zsh plugins/rake
zgen oh-my-zsh plugins/z
zgen load romkatv/powerlevel10k powerlevel10k
zgen load "MichaelAquilina/zsh-you-should-use"
# generate the init script from plugins above
zgen save
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# ALIASES GO HERE
alias cat='batcat'
alias ping='prettyping --nolegend'
alias top='sudo htop'
alias ls='exa'
alias help='tldr'
eval "$(navi widget zsh)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment