add: lf & test fish bind
This commit is contained in:
parent
2f20927f1b
commit
b8183d1627
3 changed files with 24 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
./lf.nix
|
||||||
./nvim.nix
|
./nvim.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ let
|
||||||
hasKitty = config.programs.kitty.enable;
|
hasKitty = config.programs.kitty.enable;
|
||||||
hasTre = hasPackage "tre-command";
|
hasTre = hasPackage "tre-command";
|
||||||
hasBat = hasPackage "bat";
|
hasBat = hasPackage "bat";
|
||||||
|
hasHelix = hasPackage "helix";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
|
|
@ -29,6 +30,8 @@ in
|
||||||
hm = "home-manager --flake .";
|
hm = "home-manager --flake .";
|
||||||
hms = "home-manager --flake . switch";
|
hms = "home-manager --flake . switch";
|
||||||
|
|
||||||
|
fe = mkIf hasHelix "cd $FLAKE; hx $FLAKE";
|
||||||
|
|
||||||
tree = mkIf hasTre "tre";
|
tree = mkIf hasTre "tre";
|
||||||
|
|
||||||
ls = mkIf hasEza "eza --icons";
|
ls = mkIf hasEza "eza --icons";
|
||||||
|
|
@ -40,6 +43,18 @@ in
|
||||||
};
|
};
|
||||||
functions = {
|
functions = {
|
||||||
fish_greeting = "";
|
fish_greeting = "";
|
||||||
|
fish_flake_edit = ''
|
||||||
|
cd $FLAKE
|
||||||
|
hx $FLAKE
|
||||||
|
'';
|
||||||
|
fish_hello_world = ''
|
||||||
|
echo "Hello World"; string repeat -N \n --count=(math (count (fish_prompt)) - 1); commandline -f repaint
|
||||||
|
'';
|
||||||
|
|
||||||
|
fish_user_key_bindings = ''
|
||||||
|
bind --preset -M insert \co fish_hello_world
|
||||||
|
bind --preset -M insert \cf fish_flake_edit
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
# kitty integration
|
# kitty integration
|
||||||
interactiveShellInit =
|
interactiveShellInit =
|
||||||
|
|
|
||||||
8
home/ooks/base/shell/lf.nix
Normal file
8
home/ooks/base/shell/lf.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.lf = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue