non important commit

This commit is contained in:
benstrb 2026-02-10 21:25:29 +01:00
parent caf4fa7996
commit e717d14b16
2 changed files with 56 additions and 55 deletions

View file

@ -49,6 +49,7 @@
pkgs.btop
pkgs.playerctl
pkgs.dunst
pkgs.zellij
pkgs.discord
pkgs.heroic

View file

@ -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'
}
]
})
'';
};
};