Skip to content

Instantly share code, notes, and snippets.

View tconsta's full-sized avatar
🚀

tconsta

🚀
View GitHub Profile
@ilukashin
ilukashin / .hooksrc
Last active June 7, 2024 08:07
MacOS zsh terminal notification hooks for long executed operations
# here i am using terminal-notifier
# https://github.com/julienXX/terminal-notifier
# you can use your own solution
# main setting stored in variable
# local execution_treshold=30
# if your process executed more than 30 seconds
# you will get notified
@miki725
miki725 / .bash_prompt.sh
Last active July 14, 2025 18:23
Custom bash prompt which displays: (virtualenv) user:/path (git-branch)
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch of the current git/mercurial repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.