Skip to content

Instantly share code, notes, and snippets.

@Atreyagaurav
Atreyagaurav / menu.json
Created February 1, 2021 08:00
dmenu based scripts execution
{
"bgcolor": "black",
"scripts": {
"next-chapter": {
"name": "Next Chapter",
"script": "/home/gaurav/scripts/next_episode.py",
"tooltip": "While in firefox, change the address to next chapter or episode"
},
"log-anime": {
"name": "Animes/Series Log",
@jan-warchol
jan-warchol / sync-history.sh
Last active November 7, 2025 03:40
Synchronize history across bash sessions
# Synchronize history between bash sessions
#
# Make history from other terminals available to the current one. However,
# don't mix all histories together - make sure that *all* commands from the
# current session are on top of its history, so that pressing up arrow will
# give you most recent command from this session, not from any session.
#
# Since history is saved on each prompt, this additionally protects it from
# terminal crashes.