mirror of
https://github.com/shokinn/.files.git
synced 2025-01-18 21:22:25 +00:00
Upgrade to powerlevel10k theme
This commit is contained in:
parent
d91499d8ea
commit
701cb544fa
21
config.yaml
21
config.yaml
|
@ -1,8 +1,10 @@
|
|||
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;
|
||||
if [ -f ~/.zshrc.pre-oh-my-zsh ]; then rm ~/.zshrc && mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc; fi; fi
|
||||
powerlevel9k-theme: if [ ! -d ~/.oh-my-zsh/custom/themes ]; then mkdir -p ~/.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
|
||||
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 ${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 ${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/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:
|
||||
backup: true
|
||||
create: true
|
||||
|
@ -52,6 +54,11 @@ dotfiles:
|
|||
- powerlevel9k-theme
|
||||
dst: ~/.powerlevel9krc
|
||||
src: powerlevel9krc
|
||||
f_powerlevel10krc:
|
||||
actions:
|
||||
- powerlevel10k-theme
|
||||
dst: ~/.p10k.zsh
|
||||
src: p10k.zsh
|
||||
f_profile:
|
||||
dst: ~/.profile
|
||||
src: profile
|
||||
|
@ -107,7 +114,7 @@ profiles:
|
|||
- f_vimrc
|
||||
- f_zshrc
|
||||
- f_zshenv_win
|
||||
- f_powerlevel9krc
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_compton.conf
|
||||
- f_rofi_config
|
||||
|
@ -134,7 +141,7 @@ profiles:
|
|||
- f_zprofile
|
||||
- f_zshrc
|
||||
- f_zshenv
|
||||
- f_powerlevel9krc
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_xresources
|
||||
- f_ssh-agent.service
|
||||
|
@ -153,6 +160,6 @@ profiles:
|
|||
- f_vimrc
|
||||
- f_zshrc
|
||||
- f_zshenv
|
||||
- f_powerlevel9krc
|
||||
- f_powerlevel10krc
|
||||
- d_colors
|
||||
- f_zprofile
|
||||
|
|
1659
dotfiles/p10k.zsh
Normal file
1659
dotfiles/p10k.zsh
Normal file
File diff suppressed because it is too large
Load diff
|
@ -2,6 +2,13 @@
|
|||
# {{@@ 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.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
|
||||
|
@ -14,8 +21,7 @@
|
|||
if [[ $TERM == 'linux' ]]; then
|
||||
ZSH_THEME="agnoster"
|
||||
else
|
||||
source ~/.powerlevel9krc
|
||||
ZSH_THEME="powerlevel9k/powerlevel9k"
|
||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
fi
|
||||
|
||||
# Set list of themes to load
|
||||
|
@ -124,7 +130,10 @@ if [ -f "$HOME/.local/bin/pipx" ]; then
|
|||
eval "$(register-python-argcomplete pipx)"
|
||||
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() {
|
||||
if [ -z "$1" ]; then
|
||||
curl http://wttr.in
|
||||
|
|
Loading…
Reference in a new issue