From 110a4a724ef9079ec4d2dca04ea7182e0f128724 Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Mon, 13 Dec 2021 19:49:33 +0000 Subject: [PATCH] Comment everything --- dotfiles/.zshrc | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index 65de746..e67652f 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -1,32 +1,41 @@ +#---------------------------------------------------------------------------------# +### Powerlevel10k instant prompt # 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 - +#---------------------------------------------------------------------------------# +### Zsh autogenerated config # Lines configured by zsh-newuser-install -HISTFILE=~/.zsh_history -HISTSIZE=1000 -SAVEHIST=1000 +HISTFILE=~/.zsh_history # Sets history file +HISTSIZE=1000 # Sets lines to save history for +SAVEHIST=1000 # Sets lines to save history for bindkey -e # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle :compinstall filename '/home/tyman/.zshrc' -zstyle ':completion:*' menu select=2 autoload -Uz compinit compinit # End of lines added by compinstall -source ~/powerlevel10k/powerlevel10k.zsh-theme +#---------------------------------------------------------------------------------# +### Powerlevel10k theme +source ~/powerlevel10k/powerlevel10k.zsh-theme # Load theme # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. -[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh - +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # Load zsh config +#---------------------------------------------------------------------------------# +### Load nvm (node version manager) export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion - -alias ls="ls --color" -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -export GPG_TTY=$(tty) +#---------------------------------------------------------------------------------# +### Make everything colorful +alias ls="ls --color" # `ls` colors +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # Syntax highlighting +#---------------------------------------------------------------------------------# +### Fixes +export GPG_TTY=$(tty) # Fix gpg signing +#---------------------------------------------------------------------------------#