converted to oh my posh

This commit is contained in:
L. Kraven
2024-06-19 20:57:51 -07:00
parent 55464a4501
commit 0d38a06b72

13
.zshrc
View File

@@ -1,9 +1,5 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Init OhMyPosh
# Initialization code that may require console input (password prompts, [y/n] eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/lkraven.toml)"
# 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
# Set ZINIT Home # Set ZINIT Home
ZINIT_HOME="${HOME}/.config/zinit/zinit.git" ZINIT_HOME="${HOME}/.config/zinit/zinit.git"
@@ -35,9 +31,6 @@ path=(~/.local/bin $path)
# Load Zinit # Load Zinit
source "${ZINIT_HOME}/zinit.zsh" source "${ZINIT_HOME}/zinit.zsh"
# Powerlevel10k
zinit ice depth=1; zinit light romkatv/powerlevel10k
# add zinit # add zinit
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
@@ -81,7 +74,7 @@ alias cat='bat'
alias tree='eza --tree' alias tree='eza --tree'
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND="fd --hidden --strip-cwd-prefix --exclude .git" export FZF_DEFAULT_COMMAND="fd --hidden --strip-cwd-prefix --exclude .git"