mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
complete rework v3
This commit is contained in:
parent
7409e9ca10
commit
366a0e221a
131 changed files with 20171 additions and 585 deletions
42
parts/modules/shell/fish/default.nix
Normal file
42
parts/modules/shell/fish/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
username,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
config = {
|
||||
programs.fish.enable = true;
|
||||
users.users.${username}.shell = pkgs.fish;
|
||||
|
||||
# Fish enables generateCaches by default, which causes slow builds
|
||||
documentation.man.generateCaches = false;
|
||||
|
||||
fireproof.home-manager.programs.fish = {
|
||||
enable = true;
|
||||
shellInit = ''
|
||||
|
||||
${builtins.readFile ./theme.fish}
|
||||
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
name = "to-fish";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "joehillen";
|
||||
repo = "to-fish";
|
||||
rev = "52b151cfe67c00cb64d80ccc6dae398f20364938";
|
||||
sha256 = "sha256-DfDsU/qY2XdYlkLISIOv02ggHfKEpb+YompNWWjs5/A=";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "theme-bobthefish";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "oh-my-fish";
|
||||
repo = "theme-bobthefish";
|
||||
rev = "e3b4d4eafc23516e35f162686f08a42edf844e40";
|
||||
hash = "sha256-cXOYvdn74H4rkMWSC7G6bT4wa9d3/3vRnKed2ixRnuA=";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
45
parts/modules/shell/fish/theme.fish
Normal file
45
parts/modules/shell/fish/theme.fish
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# Colorscheme: use terminal colors
|
||||
set -U fish_color_normal normal
|
||||
set -U fish_color_command blue
|
||||
set -U fish_color_quote yellow
|
||||
set -U fish_color_redirection cyan --bold
|
||||
set -U fish_color_end green
|
||||
set -U fish_color_error brred
|
||||
set -U fish_color_param cyan
|
||||
set -U fish_color_comment red
|
||||
set -U fish_color_match --background=brblue
|
||||
set -U fish_color_selection white --bold --background=brblack
|
||||
set -U fish_color_search_match bryellow --background=brblack
|
||||
set -U fish_color_history_current --bold
|
||||
set -U fish_color_operator brcyan
|
||||
set -U fish_color_escape brcyan
|
||||
set -U fish_color_cwd green
|
||||
set -U fish_color_cwd_root red
|
||||
set -U fish_color_valid_path --underline
|
||||
set -U fish_color_autosuggestion brblack
|
||||
set -U fish_color_user brgreen
|
||||
set -U fish_color_host normal
|
||||
set -U fish_color_cancel --reverse
|
||||
set -U fish_pager_color_prefix normal --bold --underline
|
||||
set -U fish_pager_color_progress brwhite --background=cyan
|
||||
set -U fish_pager_color_completion normal
|
||||
set -U fish_pager_color_description yellow --italics
|
||||
set -U fish_pager_color_selected_background --reverse
|
||||
set -U fish_pager_color_selected_description
|
||||
set -U fish_pager_color_selected_completion
|
||||
set -U fish_pager_color_secondary_completion
|
||||
set -U fish_pager_color_secondary_background
|
||||
set -U fish_color_keyword
|
||||
set -U fish_pager_color_selected_prefix
|
||||
set -U fish_pager_color_background
|
||||
set -U fish_pager_color_secondary_prefix
|
||||
set -U fish_pager_color_secondary_description
|
||||
set -U fish_color_host_remote
|
||||
set -U fish_color_option
|
||||
|
||||
# Bobthefish config
|
||||
set -g theme_date_timezone Europe/Copenhagen
|
||||
set -g theme_date_format "+%a %H:%M"
|
||||
set -g theme_nerd_fonts yes
|
||||
set -g theme_color_scheme terminal
|
||||
set -g theme_display_user ssh
|
||||
Loading…
Add table
Add a link
Reference in a new issue