Skip to content

Instantly share code, notes, and snippets.

View johnrizzo1's full-sized avatar

John Rizzo johnrizzo1

View GitHub Profile
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
@johnrizzo1
johnrizzo1 / format.sh
Created October 9, 2019 18:46
bash formatted string
for i in $(seq 02 04); do
for j in $(seq 01 36); do
printf -v k "r%02dn%02d.sls\n" $i $j;
touch $k;
done;
done
@johnrizzo1
johnrizzo1 / gist:e09f5d7c56e19d50266b4a083d24610a
Created October 9, 2020 16:55
Remap SuperL/SuperR (Useful for Kinesis keyboards that use SuperR for the windows key)
xmodmap -e "keycode 134 = Super_L"
@johnrizzo1
johnrizzo1 / nerd-font-install.sh
Created January 10, 2021 20:26
Script to install the latest nerd fonts
install_nerd_fonts() {
# https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip
TMPDIR=/tmp/nerd-font-install
URL="https://github.com/ryanoasis/nerd-fonts/releases/download"
VERSION="v2.1.0"
FONTS=(
3270
Agave AnonymousPro Arimo AurulentSansMono
BigBlueTerminal BitstreamVeraSansMono
CascadiaCode CodeNewRoman Cousine
{ pkgs, lib, config, inputs, ... }:
{
packages =
let
# mypkgs = import inputs.nixpkgs-unstable {
mypkgs = import inputs.nixpkgs {
inherit (pkgs.stdenv) system;