Skip to content

Instantly share code, notes, and snippets.

View loveh4ck's full-sized avatar

采蘑菇的老司机 loveh4ck

  • Baidu
  • USA
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.* ]] && \