Skip to content

Instantly share code, notes, and snippets.

@falonofthetower
Created August 28, 2016 22:30
Show Gist options
  • Save falonofthetower/bc5c2d7cafa2af471aa28e88bf963124 to your computer and use it in GitHub Desktop.
Save falonofthetower/bc5c2d7cafa2af471aa28e88bf963124 to your computer and use it in GitHub Desktop.
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