Skip to content

Commit 24ec798

Browse files
committed
feat: add default Powerlevel10k configuration and update script to copy it
1 parent 7136d0a commit 24ec798

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

‎home/.p10k.zsh.default‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Powerlevel10k instant prompt
2+
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
3+
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
4+
fi
5+
6+
# Basic Powerlevel10k configuration
7+
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
8+
dir # current directory
9+
vcs # git status
10+
)
11+
12+
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
13+
status # exit code of the last command
14+
command_execution_time # duration of the last command
15+
background_jobs # presence of background jobs
16+
context # user@hostname
17+
time # current time
18+
)
19+
20+
typeset -g POWERLEVEL9K_MODE='nerdfont-complete'
21+
typeset -g POWERLEVEL9K_ICON_PADDING=moderate

‎setup/packages/zsh-global.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fi
140140
echo ""
141141
echo "Copying Powerlevel10k configuration from home/.p10k.zsh..."
142142

143-
HOME_P10K="$SCRIPT_DIR/home/.p10k.zsh"
143+
HOME_P10K="$SCRIPT_DIR/home/.p10k.zsh.default"
144144

145145
if [ -f "$HOME_P10K" ]; then
146146
sudo cp "$HOME_P10K" /etc/skel/.p10k.zsh

0 commit comments

Comments
 (0)