termux.zshrc aktualisiert
This commit is contained in:
+6
-12
@@ -1,15 +1,9 @@
|
|||||||
# 1. P10k Instant Prompt (MUSS GANZ OBEN STEHEN)
|
# --- P10k Instant Prompt ---
|
||||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 2. OS Info
|
# --- Environment ---
|
||||||
if [ -f /etc/os-release ]; then
|
|
||||||
. /etc/os-release
|
|
||||||
OS_ID=$ID
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Environment
|
|
||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
export VISUAL='nvim'
|
export VISUAL='nvim'
|
||||||
export TERM='xterm-256color'
|
export TERM='xterm-256color'
|
||||||
@@ -17,7 +11,7 @@ export TERM='xterm-256color'
|
|||||||
# Entferne das '/' aus der Definition eines Wortes
|
# Entferne das '/' aus der Definition eines Wortes
|
||||||
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
||||||
|
|
||||||
# 3. Zinit Setup
|
# --- Zinit Setup ---
|
||||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||||
if [ ! -d "$ZINIT_HOME" ]; then
|
if [ ! -d "$ZINIT_HOME" ]; then
|
||||||
mkdir -p "$(dirname $ZINIT_HOME)"
|
mkdir -p "$(dirname $ZINIT_HOME)"
|
||||||
@@ -25,7 +19,7 @@ if [ ! -d "$ZINIT_HOME" ]; then
|
|||||||
fi
|
fi
|
||||||
source "${ZINIT_HOME}/zinit.zsh"
|
source "${ZINIT_HOME}/zinit.zsh"
|
||||||
|
|
||||||
# 4. Plugins
|
# --- Plugins ---
|
||||||
zinit ice depth=1; zinit light romkatv/powerlevel10k
|
zinit ice depth=1; zinit light romkatv/powerlevel10k
|
||||||
zinit light zsh-users/zsh-syntax-highlighting
|
zinit light zsh-users/zsh-syntax-highlighting
|
||||||
zinit light zsh-users/zsh-completions
|
zinit light zsh-users/zsh-completions
|
||||||
@@ -36,7 +30,7 @@ zinit load 'zsh-users/zsh-history-substring-search'
|
|||||||
autoload -Uz compinit && compinit
|
autoload -Uz compinit && compinit
|
||||||
zinit cdreplay -q
|
zinit cdreplay -q
|
||||||
|
|
||||||
# 5. Theme & Fastfetch
|
# --- Theme & Fastfetch ---
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
# Fastfetch erst nach dem Prompt-Setup aufrufen
|
# Fastfetch erst nach dem Prompt-Setup aufrufen
|
||||||
(( $+commands[fastfetch] )) && fastfetch --config ~/.config/fastfetch/config.jsonc
|
(( $+commands[fastfetch] )) && fastfetch --config ~/.config/fastfetch/config.jsonc
|
||||||
@@ -49,7 +43,7 @@ setopt appendhistory sharehistory hist_ignore_space hist_ignore_all_dups
|
|||||||
setopt hist_save_no_dups hist_ignore_dups hist_find_no_dups
|
setopt hist_save_no_dups hist_ignore_dups hist_find_no_dups
|
||||||
setopt autocd auto_param_slash globdots
|
setopt autocd auto_param_slash globdots
|
||||||
|
|
||||||
# --- Aliases & Update Script ---
|
# --- Aliases ---
|
||||||
alias c='clear'
|
alias c='clear'
|
||||||
alias x='exit'
|
alias x='exit'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user