non important commit
This commit is contained in:
parent
caf4fa7996
commit
e717d14b16
2 changed files with 56 additions and 55 deletions
|
|
@ -49,6 +49,7 @@
|
||||||
pkgs.btop
|
pkgs.btop
|
||||||
pkgs.playerctl
|
pkgs.playerctl
|
||||||
pkgs.dunst
|
pkgs.dunst
|
||||||
|
pkgs.zellij
|
||||||
|
|
||||||
pkgs.discord
|
pkgs.discord
|
||||||
pkgs.heroic
|
pkgs.heroic
|
||||||
|
|
|
||||||
|
|
@ -41,70 +41,70 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
if "IN_NIX_SHELL" in $env == false {
|
if "IN_NIX_SHELL" in $env == false {
|
||||||
fastfetch
|
fastfetch
|
||||||
}
|
}
|
||||||
|
|
||||||
def c [] {
|
def c [] {
|
||||||
clear
|
clear
|
||||||
fastfetch
|
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 --env fzf-cd [] {
|
def rebuild [message?: string] {
|
||||||
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)
|
cd /home/benag/.nix-config
|
||||||
|
let commit_message = if $message != null {$message} else {"non important commit"}
|
||||||
|
|
||||||
if $dir != null and $dir != "" {
|
try {
|
||||||
cd $dir
|
git pull
|
||||||
}
|
git add .
|
||||||
}
|
git commit -m $commit_message
|
||||||
|
git push
|
||||||
|
}
|
||||||
|
|
||||||
def --env fzf-nvim [] {
|
sudo nixos-rebuild switch --flake .#benag
|
||||||
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 != "" {
|
def --env fzf-cd [] {
|
||||||
nvim $file
|
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 {
|
$env.config.keybindings = ($env.config.keybindings | append {
|
||||||
name: "fzf-cd"
|
name: "fzf-cd"
|
||||||
modifier: "control"
|
modifier: "control"
|
||||||
keycode: "char_f"
|
keycode: "char_f"
|
||||||
mode: "emacs"
|
mode: "emacs"
|
||||||
event: [
|
event: [
|
||||||
{
|
{
|
||||||
send: "executehostcommand"
|
send: "executehostcommand"
|
||||||
cmd: 'fzf-cd'
|
cmd: 'fzf-cd'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
$env.config.keybindings = ($env.config.keybindings | append {
|
$env.config.keybindings = ($env.config.keybindings | append {
|
||||||
name: "fzf-nvim"
|
name: "fzf-nvim"
|
||||||
modifier: "control"
|
modifier: "control"
|
||||||
keycode: "char_e"
|
keycode: "char_e"
|
||||||
mode: "emacs"
|
mode: "emacs"
|
||||||
event: [
|
event: [
|
||||||
{
|
{
|
||||||
send: "executehostcommand"
|
send: "executehostcommand"
|
||||||
cmd: 'fzf-nvim'
|
cmd: 'fzf-nvim'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue