Skip to content

Instantly share code, notes, and snippets.

@pieman2201
Created August 29, 2023 21:08
Show Gist options
  • Select an option

  • Save pieman2201/9e32433de1093430ebbf9f5cdc76f20d to your computer and use it in GitHub Desktop.

Select an option

Save pieman2201/9e32433de1093430ebbf9f5cdc76f20d to your computer and use it in GitHub Desktop.
zshrc
source $HOME/.zplug/init.zsh
zplug "chriskempson/base16-shell", from:github
# Install plugins if there are plugins that have not been installed
if ! zplug check; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Then, source plugins and add commands to $PATH
zplug load
# User configuration
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
export PATH=$HOME/1010:$HOME/.local/bin:$PATH:$HOME/.cargo/bin
export LC_TIME=C
export WINIT_X11_SCALE_FACTOR=1.5
export EDITOR=vim
export EXA_COLORS="da=35"
alias ls='exa -l'
alias vim=nvim
ZLE_RPROMPT_INDENT=0
autoload -U colors && colors
#PROMPT='%K{19}%F{blue}%n%f@%F{green}%m%f %F{yellow}%(5~|%-1~/.../%3~|%4~)%f %k%F{19}'$'\UE0B0''%f '
setopt prompt_subst
PROMPT='%K{19} %F{blue}%(5~|%-1~/.../%3~|%4~)%f %k%F{19}'$'\UE0B0''%f '
RPROMPT='%F{19}'$'\UE0B2''%f%K{19} %F{magenta}%T %F{yellow}'
RPROMPT+='$(cut -d '"' '"' -f1 /proc/loadavg) %F{%(?.green.red)}'$'\UE0B2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment