Skip to content

Instantly share code, notes, and snippets.

View therockhopper's full-sized avatar
🐢

Frank Schmidt therockhopper

🐢
  • Cape Breton, Nova Scotia
View GitHub Profile
@therockhopper
therockhopper / alacritty-tmux-vim_truecolor.md
Created May 29, 2023 13:59 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@therockhopper
therockhopper / escape-html.sh
Created December 5, 2019 15:29
usage: `./escape-html.sh myFile.html pbcopy` = Escape the myFile.html to a safe string and copy to clipboard (osx)
#!/bin/sh
# Escape the HTML file
# $1 -- source file path
# $2 -- source to pipe data into
sed 's/"/\\"/g' $1 | awk '{print}' ORS=' '| $2
$tablet-width: 600px;
$desktop-width: 960px;
$xl-width: 1025px;
@mixin tablet {
@media (min-width: #{$tablet-width}) {
@content;
}
}