mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-27 03:05:38 +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
|