Created
August 28, 2016 22:30
-
-
Save falonofthetower/bc5c2d7cafa2af471aa28e88bf963124 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install slackcat | |
slackcat --configure | |
<Follow authorization instructions and run command in commandline> | |
<Add to ~/.vimrc> | |
function! g:SlackThis() | |
let chan = input('Channel: ', 'falonofthetower') | |
let file_name = expand('%') | |
exec "!slackcat -c " . l:chan . " " . l:file_name | |
endfunction | |
command! SlackUpload call SlackThis(<args>) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment