Skip to content

Instantly share code, notes, and snippets.

@mzpwr
mzpwr / tmux-migrate-options.py
Created February 29, 2024 08:11 — forked from tbutts/tmux-migrate-options.py
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#
@mzpwr
mzpwr / bash-to-zsh-hist.py
Last active January 12, 2023 15:00 — forked from muendelezaji/bash-to-zsh-hist.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ strings ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time