move to ohmyposh for zsh
This commit is contained in:
parent
180a12c694
commit
953fca03c8
5 changed files with 89 additions and 272 deletions
13
.zshrc
13
.zshrc
|
|
@ -27,12 +27,7 @@ alias network='nmtui'
|
|||
alias docker='podman'
|
||||
alias sudo='sudo '
|
||||
|
||||
#
|
||||
## Initialization code that may require console input (password prompts, [y/n]
|
||||
# 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
|
||||
eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)"
|
||||
|
||||
if [[ -f "/opt/homebrew/bin/brew" ]] then
|
||||
# If you're using macOS, you'll want this enabled
|
||||
|
|
@ -51,9 +46,6 @@ fi
|
|||
# Source/Load zinit
|
||||
source "${ZINIT_HOME}/zinit.zsh"
|
||||
|
||||
# Add in Powerlevel10k
|
||||
zinit ice depth=1; zinit light romkatv/powerlevel10k
|
||||
|
||||
# Add in zsh plugins
|
||||
zinit light zsh-users/zsh-syntax-highlighting
|
||||
zinit light zsh-users/zsh-completions
|
||||
|
|
@ -81,9 +73,6 @@ autoload -Uz compinit && compinit
|
|||
|
||||
zinit cdreplay -q
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
# Keybindings
|
||||
bindkey -e
|
||||
bindkey '^p' history-search-backward
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue