Upgrade to powerlevel10k theme

This commit is contained in:
Philip Henning 2020-08-12 13:43:34 +02:00
parent d91499d8ea
commit 701cb544fa
3 changed files with 1685 additions and 10 deletions

View file

@ -1,8 +1,10 @@
actions: actions:
oh-my-zsh: if [ ! -d ~/.oh-my-zsh ]; then sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended; oh-my-zsh: if [ ! -d ${HOME}/.oh-my-zsh ]; then sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended;
if [ -f ~/.zshrc.pre-oh-my-zsh ]; then rm ~/.zshrc && mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc; fi; fi if [ -f ${HOME}/.zshrc.pre-oh-my-zsh ]; then rm ${HOME}/.zshrc && mv ${HOME}/.zshrc.pre-oh-my-zsh ${HOME}/.zshrc; fi; fi
powerlevel9k-theme: if [ ! -d ~/.oh-my-zsh/custom/themes ]; then mkdir -p ~/.oh-my-zsh/custom/themes; powerlevel9k-theme: if [ ! -d ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes ]; then mkdir -p ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes;
fi; if [ ! -d ~/.oh-my-zsh/custom/themes/powerlevel9k ];then git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k; fi fi; if [ ! -d ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel9k ];then git clone https://github.com/bhilburn/powerlevel9k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel9k; fi
powerlevel10k-theme: if [ ! -d ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes ]; then mkdir -p ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes;
fi; if [ ! -d ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k ];then git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k; fi
config: config:
backup: true backup: true
create: true create: true
@ -52,6 +54,11 @@ dotfiles:
- powerlevel9k-theme - powerlevel9k-theme
dst: ~/.powerlevel9krc dst: ~/.powerlevel9krc
src: powerlevel9krc src: powerlevel9krc
f_powerlevel10krc:
actions:
- powerlevel10k-theme
dst: ~/.p10k.zsh
src: p10k.zsh
f_profile: f_profile:
dst: ~/.profile dst: ~/.profile
src: profile src: profile
@ -107,7 +114,7 @@ profiles:
- f_vimrc - f_vimrc
- f_zshrc - f_zshrc
- f_zshenv_win - f_zshenv_win
- f_powerlevel9krc - f_powerlevel10krc
- d_colors - d_colors
- f_compton.conf - f_compton.conf
- f_rofi_config - f_rofi_config
@ -134,7 +141,7 @@ profiles:
- f_zprofile - f_zprofile
- f_zshrc - f_zshrc
- f_zshenv - f_zshenv
- f_powerlevel9krc - f_powerlevel10krc
- d_colors - d_colors
- f_xresources - f_xresources
- f_ssh-agent.service - f_ssh-agent.service
@ -153,6 +160,6 @@ profiles:
- f_vimrc - f_vimrc
- f_zshrc - f_zshrc
- f_zshenv - f_zshenv
- f_powerlevel9krc - f_powerlevel10krc
- d_colors - d_colors
- f_zprofile - f_zprofile

1659
dotfiles/p10k.zsh Normal file

File diff suppressed because it is too large Load diff

View file

@ -2,6 +2,13 @@
# {{@@ env['dotdrop_warning'] @@}} # {{@@ env['dotdrop_warning'] @@}}
# #
# 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
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/bin:/usr/local/bin:$PATH
@ -14,8 +21,7 @@
if [[ $TERM == 'linux' ]]; then if [[ $TERM == 'linux' ]]; then
ZSH_THEME="agnoster" ZSH_THEME="agnoster"
else else
source ~/.powerlevel9krc ZSH_THEME="powerlevel10k/powerlevel10k"
ZSH_THEME="powerlevel9k/powerlevel9k"
fi fi
# Set list of themes to load # Set list of themes to load
@ -124,7 +130,10 @@ if [ -f "$HOME/.local/bin/pipx" ]; then
eval "$(register-python-argcomplete pipx)" eval "$(register-python-argcomplete pipx)"
fi fi
# Funktions (or more complex aliasses) # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Functions (or more complex aliases)
wttr() { wttr() {
if [ -z "$1" ]; then if [ -z "$1" ]; then
curl http://wttr.in curl http://wttr.in