added powerlevel10k theme

This commit is contained in:
tracer 2023-03-24 19:00:53 +01:00
parent f4ac597497
commit e5b68250b9
3 changed files with 1768 additions and 7 deletions

1756
.p10k.zsh Normal file

File diff suppressed because it is too large Load Diff

15
.zshrc
View File

@ -1,5 +1,12 @@
# 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
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="cobalt2"
ZSH_THEME="powerlevel10k/powerlevel10k"
CASE_SENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
@ -22,7 +29,5 @@ setopt PROMPT_SUBST
export PROMPT='$(cdbm -add)'$PROMPT
function c() { dir=$(cdbm 3>&1 1>&2 2>&3); cd $dir; }
function pb() { echo "$1" | nc pastebin.24unix.net 9999 }
eval "$(zoxide init zsh)"
neofetch
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

View File

@ -1,8 +1,8 @@
#!/bin/sh
cp Settings/.zshrc Settings/.vimrc Settings/.zprofile Settings/.gitconfig .
cp Settings/.zshrc Settings/.vimrc Settings/.zprofile Settings/.gitconfig Settings/.p10k.zsh .
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
cp Settings/cobalt2.zsh-theme .oh-my-zsh
if [ $(id -u) -ne 0 ]
then