test
This commit is contained in:
@@ -20,9 +20,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[❯](purple)";
|
success_symbol = "[→](purple)";
|
||||||
error_symbol = "[❯](red)";
|
error_symbol = "[→](red)";
|
||||||
vimcmd_symbol = "[❮](green)";
|
vimcmd_symbol = "[←](green)";
|
||||||
};
|
};
|
||||||
|
|
||||||
git_branch = {
|
git_branch = {
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
terminal,
|
terminal,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
zoxide
|
zoxide
|
||||||
oh-my-posh
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
programs.zoxide.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" = {
|
home.file.".config/oh-my-posh/config.omp.json" = {
|
||||||
source = ./custom/config.omp.json;
|
source = ./custom/config.omp.json;
|
||||||
@@ -45,19 +45,20 @@
|
|||||||
|
|
||||||
setopt HIST_FIND_NO_DUPS
|
setopt HIST_FIND_NO_DUPS
|
||||||
|
|
||||||
autoload -Uz compinit
|
|
||||||
compinit
|
|
||||||
|
|
||||||
# setopt autocd # cd without writing 'cd'
|
# setopt autocd # cd without writing 'cd'
|
||||||
setopt globdots # show dotfiles in autocomplete list
|
setopt globdots # show dotfiles in autocomplete list
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
initContent = ''
|
initContent = ''
|
||||||
# Oh-My-Posh initialization for Zsh
|
|
||||||
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/config.omp.json)"
|
|
||||||
|
|
||||||
# zsh-autocomplete
|
# zsh-autocomplete
|
||||||
bindkey -M menuselect '^M' .accept-line # run code when selected completion
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user