non important commit
This commit is contained in:
parent
4af0328fd7
commit
cc398d5017
1 changed files with 8 additions and 4 deletions
|
|
@ -63,6 +63,13 @@
|
|||
sudo nixos-rebuild switch --flake .
|
||||
}
|
||||
|
||||
def fzf-cd [] {
|
||||
let dir = (fd -t d -L . | fzf --reverse --height 40%)
|
||||
if $dir != null and $dir != "" {
|
||||
cd $dir
|
||||
}
|
||||
}
|
||||
|
||||
$env.config.keybindings = ($env.config.keybindings | append {
|
||||
name: "fzf-cd"
|
||||
modifier: "control"
|
||||
|
|
@ -71,10 +78,7 @@
|
|||
event: [
|
||||
{
|
||||
send: "executehostcommand"
|
||||
cmd: 'commandline edit --replace $"cd \'(fd -t d -L . | fzf)\'"'
|
||||
}
|
||||
{
|
||||
send: "enter"
|
||||
cmd: 'fzf-cd'
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue