Skip to content

Commit 285cabd

Browse files
committed
Improve Powerlevel10k loading
1 parent 5396edb commit 285cabd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

zsh/.zshenv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ else
99
fi
1010
# Symlinking the zsh config folder is not needed thanks to this.
1111
ZDOTDIR="${GIT_DIR}/linux-scripts/zsh"
12+
unset GIT_DIR
1213

1314
if [ -f "${HOME}/.cargo/env" ]; then
1415
. "${HOME}/.cargo/env"

zsh/.zshrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@ export POWERSHELL_TELEMETRY_OPTOUT="1"
406406

407407
# Powerlevel10k configuration
408408
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
409-
[[ ! -f ~/.p10k.zsh ]] || . ~/.p10k.zsh
409+
# [[ ! -f ~/.p10k.zsh ]] || . ~/.p10k.zsh
410+
. "${ZDOTDIR}/.p10k.zsh"
410411

411412
# Add Snap icons to the launcher
412413
if [ -f "/etc/profile.d/apps-bin-path.sh" ]; then

zsh/install_zsh.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ gem install colorls
1515

1616
echo "Creating symlinks."
1717
ln -s "${SCRIPT_DIR}/.zshenv" "${HOME}/.zshenv"
18-
ln -s "${SCRIPT_DIR}/.p10k.zsh" "${HOME}/.p10k.zsh"
18+
# This is not needed, since the full path tho .p10k.zsh is specified in .zshrc.
19+
# ln -s "${SCRIPT_DIR}/.p10k.zsh" "${HOME}/.p10k.zsh"
1920

2021
echo "zsh installed."

0 commit comments

Comments
 (0)