non important commit
This commit is contained in:
parent
c7d5a5c5cd
commit
4af0328fd7
1 changed files with 10 additions and 15 deletions
|
|
@ -49,16 +49,6 @@
|
||||||
fastfetch
|
fastfetch
|
||||||
}
|
}
|
||||||
|
|
||||||
def --env f [] {
|
|
||||||
let dir = (
|
|
||||||
fd --type d --follow --exclude .git
|
|
||||||
| fzf --height 40% --reverse --border
|
|
||||||
)
|
|
||||||
if ($dir != "") {
|
|
||||||
cd $dir
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def rebuild [message?: string] {
|
def rebuild [message?: string] {
|
||||||
cd /home/maxag/.nix-config
|
cd /home/maxag/.nix-config
|
||||||
let commit_message = if $message != null {$message} else {"non important commit"}
|
let commit_message = if $message != null {$message} else {"non important commit"}
|
||||||
|
|
@ -74,14 +64,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$env.config.keybindings = ($env.config.keybindings | append {
|
$env.config.keybindings = ($env.config.keybindings | append {
|
||||||
name: "fzf-search"
|
name: "fzf-cd"
|
||||||
modifier: "control"
|
modifier: "control"
|
||||||
keycode: "char_f"
|
keycode: "char_f"
|
||||||
mode: "emacs"
|
mode: "emacs"
|
||||||
event: {
|
event: [
|
||||||
send: "executehostcommand"
|
{
|
||||||
cmd: 'commandline edit --insert (fd -t d -L . | fzf)'
|
send: "executehostcommand"
|
||||||
}
|
cmd: 'commandline edit --replace $"cd \'(fd -t d -L . | fzf)\'"'
|
||||||
|
}
|
||||||
|
{
|
||||||
|
send: "enter"
|
||||||
|
}
|
||||||
|
]
|
||||||
})
|
})
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue