mirror of
https://github.com/kossLAN/zsh-flake.git
synced 2025-11-04 17:59:50 -05:00
chore: get rid of bloated prompt in favor of minimal personal one
This commit is contained in:
parent
878a1e01c8
commit
770a38dfbe
1 changed files with 14 additions and 10 deletions
|
|
@ -20,7 +20,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
# Additional .zshrc configuration that you can add that will be appended to the .zshrc
|
# Additional .zshrc configuration that you can add that will be appended to the .zshrc
|
||||||
extraZshrc = ''
|
extraZshrc = /*sh*/ ''
|
||||||
# Stupid thing broken in NixOS module I think
|
# Stupid thing broken in NixOS module I think
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
|
|
||||||
|
|
@ -31,18 +31,23 @@ in {
|
||||||
|
|
||||||
# Special plugin cases
|
# Special plugin cases
|
||||||
source <(fzf --zsh)
|
source <(fzf --zsh)
|
||||||
|
|
||||||
|
# Minimal Prompt
|
||||||
|
autoload -Uz vcs_info
|
||||||
|
zstyle ':vcs_info:*' enable git
|
||||||
|
zstyle ':vcs_info:*' check-for-changes true
|
||||||
|
precmd() { vcs_info }
|
||||||
|
|
||||||
|
setopt prompt_subst
|
||||||
|
PROMPT='%F{cyan}%~%f '
|
||||||
|
# RPROMPT='%F{lightblue}$(git_prompt_info)%f'
|
||||||
|
RPROMPT='$vcs_info_msg_0_'
|
||||||
|
zstyle ':vcs_info:git*' formats "%b %m%u%c "
|
||||||
|
# zstyle ':vcs_info:git*' formats "(%{$fg[lightblue]%}%b)%{$reset_color%}%u%c%{$reset_color%} "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# A list of path's to a plugin
|
# A list of path's to a plugin
|
||||||
plugins = [
|
plugins = [
|
||||||
# The ZSH theme that I use, I think it looks good, go check it out.
|
|
||||||
"${pkgs.fetchFromGitHub {
|
|
||||||
owner = "zthxxx";
|
|
||||||
repo = "jovial";
|
|
||||||
rev = "701ea89b6dd2b9859dab32bd083a16643b338b47";
|
|
||||||
sha256 = "sha256-VVGBG0ZoL25v+Ht1QbnZMc1TqTiJvr211OvyVwNc3bc=";
|
|
||||||
}}/jovial.zsh-theme"
|
|
||||||
|
|
||||||
"${pkgs.fetchFromGitHub {
|
"${pkgs.fetchFromGitHub {
|
||||||
owner = "zthxxx";
|
owner = "zthxxx";
|
||||||
repo = "zsh-history-enquirer";
|
repo = "zsh-history-enquirer";
|
||||||
|
|
@ -57,7 +62,6 @@ in {
|
||||||
sha256 = "sha256-4rW2N+ankAH4sA6Sa5mr9IKsdAg7WTgrmyqJ2V1vygQ=";
|
sha256 = "sha256-4rW2N+ankAH4sA6Sa5mr9IKsdAg7WTgrmyqJ2V1vygQ=";
|
||||||
}}/zsh-syntax-highlighting.zsh"
|
}}/zsh-syntax-highlighting.zsh"
|
||||||
|
|
||||||
"${oh-my-zsh}/plugins/git/git.plugin.zsh"
|
|
||||||
"${oh-my-zsh}/plugins/urltools/urltools.plugin.zsh"
|
"${oh-my-zsh}/plugins/urltools/urltools.plugin.zsh"
|
||||||
"${oh-my-zsh}/plugins/bgnotify/bgnotify.plugin.zsh"
|
"${oh-my-zsh}/plugins/bgnotify/bgnotify.plugin.zsh"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue