mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-27 12:14:52 +00:00
11 lines
327 B
Fish
11 lines
327 B
Fish
function brews --description "Open Homebrew bundles file"
|
|
set -lx brewdir $DOTS/homebrew
|
|
set -l brewfile (basename $brewdir/*.Brewfile \
|
|
| fzf \
|
|
--height 70% \
|
|
--preview-window right:70% \
|
|
--preview 'bat --color=always $brewdir/{}' \
|
|
)
|
|
and vim $brewdir/$brewfile
|
|
end
|