This file contains 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
# Author: @chaignc | |
# Two commands in this script: | |
# record2discord => send all typed bash command to your discord channel, see bellow for the blacklist | |
# last2discord => send the last typed command to your discord channel. | |
DISCORD_WEBHOOK_URL="Your_Discord_WebHook_URL" # UPDATE this with your web hook (take 2 minutes and read about this online) | |
_send2discord() { | |
# Blacklist some commands | |
[[ ! $BASH_COMMAND =~ .*autojump.* ]] && \ |