23 lines
545 B
Fish
Raw Normal View History

2020-07-30 21:12:17 -04:00
#!/usr/local/bin/fish
function mactools
2020-07-31 20:44:02 -04:00
2020-07-30 21:12:17 -04:00
function copy --description 'Copy file contents into clipboard'
cat $argv | pbcopy
end
2020-07-31 20:44:02 -04:00
2020-08-02 10:20:25 -04:00
abbr -a brews 'vim $DOTS/homebrew/Brewfile'
abbr -a casks 'vim $DOTS/homebrew/Caskfile'
2020-07-31 20:44:02 -04:00
function brewsearch --description "Install brew plugins"
set -l inst (brew search | eval "fzf $FZF_DEFAULT_OPTS -m --header='[brew:install]'")
if not test (count $inst) = 0
for prog in $inst
brew install "$prog"
end
end
end
2020-07-30 21:12:17 -04:00
end