added powerlevel10k theme to zsh
This commit is contained in:
@@ -10,3 +10,6 @@
|
|||||||
[submodule "git/zippey"]
|
[submodule "git/zippey"]
|
||||||
path = git/zippey
|
path = git/zippey
|
||||||
url = https://bitbucket.org/sippey/zippey.git
|
url = https://bitbucket.org/sippey/zippey.git
|
||||||
|
[submodule "zsh/.oh-my-zsh/custom/themes/powerlevel10k"]
|
||||||
|
path = zsh/.oh-my-zsh/custom/themes/powerlevel10k
|
||||||
|
url = https://github.com/romkatv/powerlevel10k.git
|
||||||
|
|||||||
+1
Submodule zsh/.oh-my-zsh/custom/themes/powerlevel10k added at f851f41fc1
+11
-17
@@ -1,3 +1,10 @@
|
|||||||
|
# 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
|
||||||
|
|
||||||
#
|
#
|
||||||
# ~/.zshrc
|
# ~/.zshrc
|
||||||
#
|
#
|
||||||
@@ -12,23 +19,7 @@ export EDITOR="nvim"
|
|||||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
ZSH_THEME="robbyrussell"
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
function powerline_precmd() {
|
|
||||||
PS1="$(powerline-shell --shell zsh $?)"
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_powerline_precmd() {
|
|
||||||
for s in "${precmd_functions[@]}"; do
|
|
||||||
if [ "$s" = "powerline_precmd" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
precmd_functions+=(powerline_precmd)
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ "$TERM" != "linux" ]; then
|
|
||||||
install_powerline_precmd
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Uncomment the following line to use case-sensitive completion.
|
# Uncomment the following line to use case-sensitive completion.
|
||||||
CASE_SENSITIVE="false"
|
CASE_SENSITIVE="false"
|
||||||
@@ -162,3 +153,6 @@ else
|
|||||||
fi
|
fi
|
||||||
unset __conda_setup
|
unset __conda_setup
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user