Skip to content

Instantly share code, notes, and snippets.

View orlovmyk's full-sized avatar
🦊

Mykyta Orlov orlovmyk

🦊
View GitHub Profile
@orlovmyk
orlovmyk / alertmanager_telegram.tmpl
Last active September 8, 2024 15:19
alertmanager template for Telegram message
{{ define "__alert_list" }}{{ range . }}
{{/* Severity of the alert */}}
{{- if eq .Labels.severity "critical" -}}
❗️
{{- else if eq .Labels.severity "warning" -}}
⚠️
{{- else if eq .Labels.severity "info" -}}
ℹ️
{{- else -}}
@orlovmyk
orlovmyk / fish_right_prompt.fish
Created November 8, 2023 14:59 — forked from britishtea/fish_right_prompt.fish
My right prompt for the fish shell.
function fish_right_prompt -d "Write out the right prompt"
set -l exit_code $status
set -l is_git_repository (git rev-parse --is-inside-work-tree 2> /dev/null)
set -l max_shlvl 1; and test "$TERM" = "screen"; and set -l max_shlvl 2
# Print a fork symbol when in a subshell
if test $SHLVL -gt $max_shlvl
set_color yellow
echo -n "⑂ "
set_color normal