From e717d14b16e82a86f5934997eb69128f7491b44a Mon Sep 17 00:00:00 2001 From: benstrb Date: Tue, 10 Feb 2026 21:25:29 +0100 Subject: [PATCH] non important commit --- home/home.nix | 1 + home/modules/shells.nix | 110 ++++++++++++++++++++-------------------- 2 files changed, 56 insertions(+), 55 deletions(-) diff --git a/home/home.nix b/home/home.nix index 4d326ea..9023464 100644 --- a/home/home.nix +++ b/home/home.nix @@ -49,6 +49,7 @@ pkgs.btop pkgs.playerctl pkgs.dunst + pkgs.zellij pkgs.discord pkgs.heroic diff --git a/home/modules/shells.nix b/home/modules/shells.nix index 0be6d1e..5ab5507 100644 --- a/home/modules/shells.nix +++ b/home/modules/shells.nix @@ -41,70 +41,70 @@ }; extraConfig = '' - if "IN_NIX_SHELL" in $env == false { - fastfetch - } + if "IN_NIX_SHELL" in $env == false { + fastfetch + } - def c [] { - clear - fastfetch - } - - def rebuild [message?: string] { - cd /home/benag/.nix-config - let commit_message = if $message != null {$message} else {"non important commit"} - - try { - git pull - git add . - git commit -m $commit_message - git push - } - - sudo nixos-rebuild switch --flake .#benag + def c [] { + clear + fastfetch } - def --env fzf-cd [] { - let dir = (fd -H -t d -L . | fzf --reverse --height 40% --border rounded --preview=("eza --color=always --group-directories-first --icons --long {}") --preview-window=border-left) + def rebuild [message?: string] { + cd /home/benag/.nix-config + let commit_message = if $message != null {$message} else {"non important commit"} - if $dir != null and $dir != "" { - cd $dir - } - } + try { + git pull + git add . + git commit -m $commit_message + git push + } - def --env fzf-nvim [] { - let file = (fd -H -t f -L . | fzf --reverse --height 40% --border rounded --preview=("bat -p -P --color always {}") --preview-window=border-left) + sudo nixos-rebuild switch --flake .#benag + } - if $file != null and $file != "" { - nvim $file + def --env fzf-cd [] { + let dir = (fd -H -t d -L . | fzf --reverse --height 40% --border rounded --preview=("eza --color=always --group-directories-first --icons --long {}") --preview-window=border-left) + + if $dir != null and $dir != "" { + cd $dir + } + } + + def --env fzf-nvim [] { + let file = (fd -H -t f -L . | fzf --reverse --height 40% --border rounded --preview=("bat -p -P --color always {}") --preview-window=border-left) + + if $file != null and $file != "" { + nvim $file + } } - } - $env.config.keybindings = ($env.config.keybindings | append { - name: "fzf-cd" - modifier: "control" - keycode: "char_f" - mode: "emacs" - event: [ - { - send: "executehostcommand" - cmd: 'fzf-cd' - } - ] - }) + $env.config.keybindings = ($env.config.keybindings | append { + name: "fzf-cd" + modifier: "control" + keycode: "char_f" + mode: "emacs" + event: [ + { + send: "executehostcommand" + cmd: 'fzf-cd' + } + ] + }) - $env.config.keybindings = ($env.config.keybindings | append { - name: "fzf-nvim" - modifier: "control" - keycode: "char_e" - mode: "emacs" - event: [ - { - send: "executehostcommand" - cmd: 'fzf-nvim' - } - ] - }) + $env.config.keybindings = ($env.config.keybindings | append { + name: "fzf-nvim" + modifier: "control" + keycode: "char_e" + mode: "emacs" + event: [ + { + send: "executehostcommand" + cmd: 'fzf-nvim' + } + ] + }) ''; }; };