From 5f565d7c0453b52b95469e88474d115c3bea608c Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 9 Jan 2022 19:45:38 +0100 Subject: [PATCH] Deprecate pure theme You can configure pure theme in `powerlevel10k` --- .gitmodules | 3 --- README.md | 6 ------ pure | 1 - zshrc.pure | 62 ----------------------------------------------------- 4 files changed, 72 deletions(-) delete mode 160000 pure delete mode 100644 zshrc.pure diff --git a/.gitmodules b/.gitmodules index d932b65..051a88f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "pure"] - path = pure - url = https://github.com/sindresorhus/pure [submodule "zsh-autosuggestions"] path = zsh-autosuggestions url = https://github.com/zsh-users/zsh-autosuggestions diff --git a/README.md b/README.md index 8b7d65c..0a0f785 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,6 @@ zsh ``` p10k config ``` -### `pure` shell theme - - Link the `zsh.pure` file to your home folder as `.zshrc` -``` -ln -s ~/zsh/zshrc.pure ~/.zsh -``` ## Get Dependencies @@ -55,7 +50,6 @@ ln -s ~/zsh/zshrc.pure ~/.zsh - [`git`](https://github.com/davidde/git) - Usefull git aliases - [`zsh-syntax-highlighting`](https://github.com/zsh-users/zsh-syntax-highlighting) - Syntax highlighting for ZSH - [`powerlevel10k`](https://github.com/romkatv/powerlevel10k) theme - The the actual theme - - [`pure`](https://github.com/sindresorhus/pure) - Pure shell look for zsh ### Install from your distribution's repository - [`thefuck`](https://github.com/nvbn/thefuck) - Corrects errors in previous console commands (when you mess up a command, type `fuck`) diff --git a/pure b/pure deleted file mode 160000 index 90dc9cf..0000000 --- a/pure +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 90dc9cf908481cc155e1ce5611f684916523fc30 diff --git a/zshrc.pure b/zshrc.pure deleted file mode 100644 index b7bb882..0000000 --- a/zshrc.pure +++ /dev/null @@ -1,62 +0,0 @@ -# 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 - -# Dependencies You Need for this Config -# zsh-syntax-highlighting - syntax highlighting for ZSH in standard repos -# autojump - jump to directories with j or jc for child or jo to open in file manager -# zsh-autosuggestions - Suggestions based on your history - -# Initial Setup -# touch "$HOME/.cache/zshhistory -# Setup Alias in $HOME/zsh/aliasrc -# git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k -# echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc - -# Enable colors and change prompt: -autoload -U colors && colors -PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " - -# Custom Variables -EDITOR=nano - -# Pure Prompt -fpath+=$HOME/zsh/pure -autoload -U promptinit; promptinit -prompt pure -PURE_PROMPT_SYMBOL=\$ -PURE_PROMPT_VICMD_SYMBOL=\< - -# History in cache directory: -HISTSIZE=10000 -SAVEHIST=10000 -HISTFILE=~/.cache/zshhistory -setopt appendhistory - -# Basic auto/tab complete: -autoload -U compinit -zstyle ':completion:*' menu select -zmodload zsh/complist -compinit -_comp_options+=(globdots) # Include hidden files. - -# Custom ZSH Binds -bindkey '^ ' autosuggest-accept -bindkey "^[[H" beginning-of-line -bindkey "^[[F" end-of-line -bindkey "^[[3~" delete-char - -# Load aliases and shortcuts if existent. -[ -f "$HOME/zsh/aliasrc" ] && source "$HOME/zsh/aliasrc" - -# Load ; should be last. -source $HOME/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null -source $HOME/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null -source /usr/share/autojump/autojump.zsh 2>/dev/null -source ~/powerlevel10k/powerlevel10k.zsh-theme - -# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. -[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh