1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-08 19:53:53 +00:00
ultima/modules/home/shells/fish/default.nix

57 lines
1.4 KiB
Nix
Raw Normal View History

{
x,
pkgs,
lib,
config,
...
}:
2024-11-21 09:24:15 +00:00
with lib;
2024-12-09 01:15:55 +00:00
with x;
2024-11-21 09:24:15 +00:00
let
cfg = config.module.shells.fish;
abbrs = config.module.shells.abbrs;
in
{
options = {
module.shells.fish = {
enable = mkBool;
};
};
2024-11-21 09:24:15 +00:00
config = mkIf cfg.enable {
programs.fish = True // {
2024-12-03 14:20:37 +00:00
package = pkgs.fish;
2024-11-21 09:24:15 +00:00
preferAbbrs = true;
shellAbbrs = abbrs;
interactiveShellInit = ''
set fish_greeting
'';
shellInitLast = ''
set fish_cursor_default block
set fish_cursor_insert line
set fish_cursor_replace_one underscore
set fish_cursor_replace underscore
set fish_cursor_visual block
set fish_cursor_external line
set -g tide_prompt_transient_enabled true
set -g tide_prompt_add_newline_before true
set -g tide_left_prompt_items pwd git newline character
set -g tide_right_prompt_items cmd_duration
set -g tide_cmd_duration_icon
set -g tide_cmd_duration_threshold 1000
set -g tide_pwd_icon_home "home of user ${userName}"
set -g tide_pwd_icon 󰋜
set -g tide_pwd_icon_unwritable 󰌾
set -g tide_pwd_transient_enabled true
set -g tide_pwd_color_truncated_dirs brblack
set -g tide_pwd_color_dirs blue
set -g tide_pwd_color_anchors blue
set -g tide_git_color_branch -o green
2024-12-03 14:20:37 +00:00
[ "$(tty)" = "/dev/tty1" ] && exec Hyprland # LAUNCH WM
2024-11-21 09:24:15 +00:00
'';
};
};
}