Skip to content

Instantly share code, notes, and snippets.

@kane-thornwyrd
Created August 24, 2021 14:19
Show Gist options
  • Save kane-thornwyrd/0884bf9ddd4357f9c85b1fa7fdddb6da to your computer and use it in GitHub Desktop.
Save kane-thornwyrd/0884bf9ddd4357f9c85b1fa7fdddb6da 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 ~/.zshenv
export DEFAULT_USER=kane-thornwyrd
export EDITOR=code
export BUNDLER_EDITOR=code
export NVM_LAZY_LOAD=true
export NVM_AUTO_USE=true
export HISTCONTROL=ignoredups:ignorespace
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
which htop >/dev/null && alias top=htop
autoload -U colors && colors
setopt promptsubst
source /usr/share/zsh/share/antigen.zsh
antigen bundles <<EOBUNDLES
ohmyzsh/ohmyzsh
git-hubflow
direnv
colored-man-pages
cp
extract
fd
frontend-search
gitignore
nvm
pj
git-extras
colored-man-pages
git
desyncr/auto-ls
command-not-found
djui/alias-tips
zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-history-substring-search
lukechilds/zsh-nvm
ladyrassilon/git-hubflow-completion
lukechilds/zsh-better-npm-completion
EOBUNDLES
antigen theme romkatv/powerlevel10k
antigen apply
# Use powerline
# USE_POWERLINE="true"
# # Source manjaro-zsh-configuration
# if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
# source /usr/share/zsh/manjaro-zsh-config
# fi
# # Use manjaro zsh prompt
# if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
# source /usr/share/zsh/manjaro-zsh-prompt
# fi
alias ll="exa -1aFl --icons --group-directories-first --git"
alias g="git"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
export PATH="${HOME}/.rbenv/bin:${PATH}"
type -a rbenv > /dev/null && eval "$(rbenv init -)"
if [ -n "${SSH_CLIENT}" ] ; then
if [ -z "${DISPLAY}" ] ; then
export DISPLAY='localhost:10'
fi
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment