Comment everything
This commit is contained in:
parent
87acb964a0
commit
110a4a724e
1 changed files with 21 additions and 12 deletions
|
@ -1,32 +1,41 @@
|
||||||
|
#---------------------------------------------------------------------------------#
|
||||||
|
### Powerlevel10k instant prompt
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
# 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
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
#---------------------------------------------------------------------------------#
|
||||||
|
### Zsh autogenerated config
|
||||||
# Lines configured by zsh-newuser-install
|
# Lines configured by zsh-newuser-install
|
||||||
HISTFILE=~/.zsh_history
|
HISTFILE=~/.zsh_history # Sets history file
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000 # Sets lines to save history for
|
||||||
SAVEHIST=1000
|
SAVEHIST=1000 # Sets lines to save history for
|
||||||
bindkey -e
|
bindkey -e
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
# The following lines were added by compinstall
|
# The following lines were added by compinstall
|
||||||
zstyle :compinstall filename '/home/tyman/.zshrc'
|
zstyle :compinstall filename '/home/tyman/.zshrc'
|
||||||
zstyle ':completion:*' menu select=2
|
|
||||||
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
# End of lines added by compinstall
|
# 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.
|
# 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"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads 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
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
#---------------------------------------------------------------------------------#
|
||||||
alias ls="ls --color"
|
### Make everything colorful
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
alias ls="ls --color" # `ls` colors
|
||||||
export GPG_TTY=$(tty)
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # Syntax highlighting
|
||||||
|
#---------------------------------------------------------------------------------#
|
||||||
|
### Fixes
|
||||||
|
export GPG_TTY=$(tty) # Fix gpg signing
|
||||||
|
#---------------------------------------------------------------------------------#
|
||||||
|
|
Reference in a new issue