This commit is contained in:
lsoriano-mcm
2025-06-07 12:18:35 -05:00
parent 0abf1447af
commit c204eed76e
2 changed files with 12 additions and 11 deletions
+3 -3
View File
@@ -20,9 +20,9 @@
};
character = {
success_symbol = "[](purple)";
error_symbol = "[](red)";
vimcmd_symbol = "[](green)";
success_symbol = "[](purple)";
error_symbol = "[](red)";
vimcmd_symbol = "[](green)";
};
git_branch = {
+9 -8
View File
@@ -1,16 +1,16 @@
{
pkgs,
terminal,
lib,
...
}: {
home.packages = with pkgs; [
zoxide
oh-my-posh
];
programs.zsh.enable = true;
programs.zoxide.enable = true;
programs.oh-my-posh.enable = true;
programs.oh-my-posh.enable = false;
home.file.".config/oh-my-posh/config.omp.json" = {
source = ./custom/config.omp.json;
@@ -45,19 +45,20 @@
setopt HIST_FIND_NO_DUPS
autoload -Uz compinit
compinit
# setopt autocd # cd without writing 'cd'
setopt globdots # show dotfiles in autocomplete list
'';
};
initContent = ''
# Oh-My-Posh initialization for Zsh
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/config.omp.json)"
# zsh-autocomplete
bindkey -M menuselect '^M' .accept-line # run code when selected completion
autoload -Uz compinit
if [ "$(date +'%j')" != "$(stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)" ]; then
compinit
else
compinit -C
fi
'';
};
}