@@ -2,5 +2,17 @@
|
|||||||
programs.atuin = {
|
programs.atuin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
daemon = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
flags = [
|
||||||
|
"--disable-up-arrow"
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
style = "compact";
|
||||||
|
inline_height = 0;
|
||||||
|
show_help = false;
|
||||||
|
show_tabs = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
./bat.nix
|
./bat.nix
|
||||||
./eza.nix
|
./eza.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./fzf.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./lazygit.nix
|
./lazygit.nix
|
||||||
./mise.nix
|
./mise.nix
|
||||||
|
|||||||
@@ -1,6 +1,15 @@
|
|||||||
{
|
{
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
functions = {
|
||||||
|
open_project = ''
|
||||||
|
set -l base "$HOME/Projects"
|
||||||
|
set -l choice (fd -t d -d 1 -a . "$base/Personal" "$base/Work" \
|
||||||
|
| string replace -r -- "^$base/" "" \
|
||||||
|
| fzf --prompt "project > ")
|
||||||
|
test -n "$choice"; and cd "$base/$choice"
|
||||||
|
'';
|
||||||
|
};
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
|
|
||||||
@@ -32,6 +41,10 @@
|
|||||||
set fish_pager_color_description 9ca0b0
|
set fish_pager_color_description 9ca0b0
|
||||||
|
|
||||||
set -gx LS_COLORS "$(vivid generate catppuccin-latte)"
|
set -gx LS_COLORS "$(vivid generate catppuccin-latte)"
|
||||||
|
|
||||||
|
for mode in default insert
|
||||||
|
bind --mode $mode \cp open_project
|
||||||
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
24
modules/home/fzf.nix
Normal file
24
modules/home/fzf.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
FZF_DEFAULT_OPTS = ''
|
||||||
|
--bind=alt-k:up,alt-j:down
|
||||||
|
--expect=tab,enter
|
||||||
|
--layout=reverse
|
||||||
|
--delimiter='\t'
|
||||||
|
--with-nth=1
|
||||||
|
--preview-window='border-rounded' --prompt=' ' --marker=' ' --pointer=' '
|
||||||
|
--separator='─' --scrollbar='┃' --layout='reverse'
|
||||||
|
|
||||||
|
--color=bg+:#CCD0DA,bg:#EFF1F5,spinner:#DC8A78,hl:#D20F39
|
||||||
|
--color=fg:#4C4F69,header:#D20F39,info:#8839EF,pointer:#DC8A78
|
||||||
|
--color=marker:#7287FD,fg+:#4C4F69,prompt:#8839EF,hl+:#D20F39
|
||||||
|
--color=selected-bg:#BCC0CC
|
||||||
|
--color=border:#9CA0B0,label:#4C4F69
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -7,7 +7,6 @@ with pkgs; [
|
|||||||
docker-compose
|
docker-compose
|
||||||
fastfetch
|
fastfetch
|
||||||
fd
|
fd
|
||||||
fzf
|
|
||||||
gh
|
gh
|
||||||
git
|
git
|
||||||
gnupg
|
gnupg
|
||||||
|
|||||||
Reference in New Issue
Block a user