- bash compatible shell
- sane install of curl
- download and unpack the archive
- enter the unpacked directory and make slackfu executable
- set your authentication token in the SLACK_AUTH_TOKEN variable of slackfu
- create a global symbolic link
curl -sL https://github.com/a-sync/slackfu/archive/master.tar.gz | tar xz
cd slackfu-master && chmod +x slackfu
read -p "Enter authentication token: " SLACKAT && sed -i "3s|.*|SLACK_AUTH_TOKEN=\"$SLACKAT\"|" slackfu
sudo ln -s "$(readlink -f slackfu)" /usr/local/bin
Usage: slackfu [options] <file>
Options:
-r <channel names|channel IDs>
-n <file name>
-t <title text>
-f <initial comment>
-T <authentication token>
Examples:
slackfu somefile.jpg
slackfu -r general -n "filename.log" somefile.txt
ps | slackfu -r C8P15L0TV -t "$(id -un) $(hostname -f)"
ls -la /etc/ | slackfu -r D024BE91L,random -f "$(history 1)"