Skip to content

Instantly share code, notes, and snippets.

View realchrisolin's full-sized avatar

Chris Olin realchrisolin

View GitHub Profile
@realchrisolin
realchrisolin / set_pane
Created March 28, 2014 04:35
set pane title, requires tput. stolen from http://stackoverflow.com/a/9757133
#!/bin/sh
# usage: no_scroll_line top|bottom 'non-scrolling line content' command to run with args
#
# Set up a non-scrolling line at the top (or the bottom) of the
# terminal, write the given text into it, then (in the scrolling
# region) run the given command with its arguments. When the
# command has finished, pause with a prompt and reset the
# scrolling region.
@realchrisolin
realchrisolin / monitor.sh
Last active December 31, 2015 20:58 — forked from vjt/monitor.sh
#!/bin/bash
#
# Starts a multiplexed terminal session with tmux running monitoring software.
# Requires grc, top, and set_pane (the latter of which is another one of my gists).
# Based off https://gist.github.com/vjt/1893884
#
# tmux 1.7 or later recommended.
#
name=monitor