Skip to content

Commit

Permalink
✨ Added fzf-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaqanbaryan committed Mar 5, 2024
1 parent 755550b commit 54a5d38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/fzf-docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
docker exec -it $(docker ps --format '{{.Names}}' | fzf) $(printf "bash\nsh\nnginx -s reload\nnpm i\nphp artisan migrate" | fzf --bind enter:accept-or-print-query)
6 changes: 6 additions & 0 deletions zellij/config.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ keybinds clear-defaults=true {
};
TogglePaneEmbedOrFloating;
}
bind "Alt d" {
Run "fzf-docker" {
close_on_exit true
};
TogglePaneEmbedOrFloating;
}
bind "Alt t" { NewTab; }
bind "F10" { CloseTab; }
bind "Alt h" { GoToPreviousTab; }
Expand Down

0 comments on commit 54a5d38

Please sign in to comment.