Configure zsh with Oh My Zsh and Powerlevel10k

This commit is contained in:
2025-09-22 19:34:45 +02:00
parent 32e68ab84f
commit e850390c2d
2 changed files with 43 additions and 0 deletions

9
.zshenv Normal file
View File

@@ -0,0 +1,9 @@
export PATH="$HOME/development/flutter/bin:$PATH"
export PATH="$HOME/development/flutter/bin:$PATH"
export PATH="/usr/bin/flutter:$PATH"
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:=$HOME/.config}"
if [[ -d "$XDG_CONFIG_HOME/zsh" ]]; then
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
[[ -r "$ZDOTDIR/.zshenv" ]] && source "$ZDOTDIR/.zshenv"
fi

34
.zshrc Normal file
View File

@@ -0,0 +1,34 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
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
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git archlinux extract)
source "$ZSH/oh-my-zsh.sh"
export PATH="/home/cnachtigall/git/clone/Ally/bin:$PATH"
alias l="eza -lh"
alias ll="eza -lah"
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export ANDROID_HOME=/opt/android-sdk
export ANDROID_SDK_ROOT=$ANDROID_HOME
export PATH=$PATH:$ANDROID_HOME/platform-tools
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
export CHROME_EXECUTABLE=/usr/bin/chromium
if [ x"$BROWSER" = x"" ]; then
BROWSER=firefox
if [ -n "$DISPLAY" ]; then
BROWSER=nautilus:$BROWSER
fi
fi
if uwsm check may-start && uwsm select; then
exec systemd-cat -t uwsm_start uwsm start default
fi