Skip to content

Instantly share code, notes, and snippets.

@anxiousmodernman
Last active October 16, 2016 17:05
Show Gist options
  • Save anxiousmodernman/80a7bf84f5c9a676e5de72d8ecc987e8 to your computer and use it in GitHub Desktop.
Save anxiousmodernman/80a7bf84f5c9a676e5de72d8ecc987e8 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p $HOME/.terminal-slack
(
cd $HOME/.terminal-slack
git clone https://github.com/evanyeung/terminal-slack > /dev/null
cat > terminal-slack.sh << EOF
#!/bin/bash
node $HOME/.terminal-slack/terminal-slack/main.js
EOF
chmod +x terminal-slack.sh
ln $HOME/.terminal-slack/terminal-slack.sh /usr/local/bin/terminal-slack
)
echo "symlink created at /usr/local/bin/terminal-slack"
echo "set SLACK_TOKEN in your environment"
echo "get a token at https://api.slack.com/docs/oauth-test-tokens"
@anxiousmodernman
Copy link
Author

anxiousmodernman commented Oct 16, 2016

Run this command to install from the scary internet. Runs above script 😁

curl https://gist.githubusercontent.com/anxiousmodernman/80a7bf84f5c9a676e5de72d8ecc987e8/raw/4863efe6afafb017b202d4c20916a7a319c9f9ce/install-terminal-slack.sh | sh

@anxiousmodernman
Copy link
Author

Commands:

ctrl + L  scroll the history of the channel
ctrl + W  write something
ctrl + C  pick a channel
ESC  quit

Private DMs and slash commands not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment