Skip to content

Instantly share code, notes, and snippets.

View lahire's full-sized avatar
💭
I WAKE FROM THIS FEVER. ALL IS FALSE

Nicolás Giorgetti lahire

💭
I WAKE FROM THIS FEVER. ALL IS FALSE
View GitHub Profile
# 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.* ]] && \