treewide: move fish styling out of module
This commit is contained in:
parent
b3a03e5e9b
commit
4c06a66b5e
2 changed files with 37 additions and 46 deletions
|
@ -14,6 +14,7 @@
|
||||||
starship module cmd_duration
|
starship module cmd_duration
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
styleCfg = osConfig.local.style;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf osConfig.local.profiles.desktop.enable {
|
config = lib.mkIf osConfig.local.profiles.desktop.enable {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
|
@ -24,7 +25,43 @@ in {
|
||||||
set fish_greeting # Disable greeting
|
set fish_greeting # Disable greeting
|
||||||
fish_vi_key_bindings # Enable Vi mode
|
fish_vi_key_bindings # Enable Vi mode
|
||||||
|
|
||||||
|
''
|
||||||
|
+ lib.optionalString styleCfg.enable
|
||||||
|
''
|
||||||
|
set fish_cursor_default block blink
|
||||||
|
set fish_cursor_insert line blink
|
||||||
|
set fish_cursor_replace_one underscore blink
|
||||||
|
set fish_cursor_visual block
|
||||||
|
|
||||||
|
set -x fish_color_autosuggestion brblack
|
||||||
|
set -x fish_color_cancel -r
|
||||||
|
set -x fish_color_command brgreen
|
||||||
|
set -x fish_color_comment brmagenta
|
||||||
|
set -x fish_color_cwd green
|
||||||
|
set -x fish_color_cwd_root red
|
||||||
|
set -x fish_color_end brmagenta
|
||||||
|
set -x fish_color_error brred
|
||||||
|
set -x fish_color_escape brcyan
|
||||||
|
set -x fish_color_history_current --bold
|
||||||
|
set -x fish_color_host normal
|
||||||
|
set -x fish_color_host_remote yellow
|
||||||
|
set -x fish_color_match --background=brblue
|
||||||
|
set -x fish_color_normal normal
|
||||||
|
set -x fish_color_operator cyan
|
||||||
|
set -x fish_color_param brblue
|
||||||
|
set -x fish_color_quote yellow
|
||||||
|
set -x fish_color_redirection bryellow
|
||||||
|
set -x fish_color_search_match 'bryellow' '--background=brblack'
|
||||||
|
set -x fish_color_selection 'white' '--bold' '--background=brblack'
|
||||||
|
set -x fish_color_status red
|
||||||
|
set -x fish_color_user brgreen
|
||||||
|
set -x fish_color_valid_path --underline
|
||||||
|
set -x fish_pager_color_completion normal
|
||||||
|
set -x fish_pager_color_description yellow
|
||||||
|
set -x fish_pager_color_prefix 'white' '--bold' '--underline'
|
||||||
|
set -x fish_pager_color_progress 'brwhite' '--background=cyan'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "fzf";
|
name = "fzf";
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cfg = config.local.style;
|
|
||||||
in {
|
|
||||||
config.home-manager.sharedModules = lib.mkIf cfg.enable [
|
|
||||||
{
|
|
||||||
programs.fish.interactiveShellInit = ''
|
|
||||||
set fish_cursor_default block blink
|
|
||||||
set fish_cursor_insert line blink
|
|
||||||
set fish_cursor_replace_one underscore blink
|
|
||||||
set fish_cursor_visual block
|
|
||||||
|
|
||||||
set -x fish_color_autosuggestion brblack
|
|
||||||
set -x fish_color_cancel -r
|
|
||||||
set -x fish_color_command brgreen
|
|
||||||
set -x fish_color_comment brmagenta
|
|
||||||
set -x fish_color_cwd green
|
|
||||||
set -x fish_color_cwd_root red
|
|
||||||
set -x fish_color_end brmagenta
|
|
||||||
set -x fish_color_error brred
|
|
||||||
set -x fish_color_escape brcyan
|
|
||||||
set -x fish_color_history_current --bold
|
|
||||||
set -x fish_color_host normal
|
|
||||||
set -x fish_color_host_remote yellow
|
|
||||||
set -x fish_color_match --background=brblue
|
|
||||||
set -x fish_color_normal normal
|
|
||||||
set -x fish_color_operator cyan
|
|
||||||
set -x fish_color_param brblue
|
|
||||||
set -x fish_color_quote yellow
|
|
||||||
set -x fish_color_redirection bryellow
|
|
||||||
set -x fish_color_search_match 'bryellow' '--background=brblack'
|
|
||||||
set -x fish_color_selection 'white' '--bold' '--background=brblack'
|
|
||||||
set -x fish_color_status red
|
|
||||||
set -x fish_color_user brgreen
|
|
||||||
set -x fish_color_valid_path --underline
|
|
||||||
set -x fish_pager_color_completion normal
|
|
||||||
set -x fish_pager_color_description yellow
|
|
||||||
set -x fish_pager_color_prefix 'white' '--bold' '--underline'
|
|
||||||
set -x fish_pager_color_progress 'brwhite' '--background=cyan'
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Reference in a new issue