mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-28 05:44:53 +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
|