Skip to content
A somewhat disorganized collection of bash scripts, including my rcfiles and PS1 script http://www.github.com/jfredett/scripts
Python Shell ApacheConf
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
git-scripts
taskwarrior
tmux
utilities
.gitignore
.gitmodules
.tmux.conf
README.mkd
Rprofile
Xdefaults
ackrc
aliases
crontab
env
functions
gemrc
gitconfig
iv_config
keymap
loader
pentadactylrc
profile
ps1_setter.sh
rc
taskrc

README.mkd

rvmrc.sh

SYN

A simple script which creates a rvmrc interactively. Presents you with a choice of rubies, and then creates the gemset name based on the directory name.

usage.sh

SYN

Reads from the top of a shell script for a comment line like "#USAGE", reads again, recording all the input, till it sees "#USAGE", at which point it generates a function "usage" in the current namespace which displays that information

USAGE

(meta, I know.)

imagine a script like:

#!/bin/bash
#USAGE
# bar     | does a thing
#USAGE
function foo {
    bar() {
      echo "baz"
    }
}

if you do:

#!/bin/bash
#USAGE
# bar     | does a thing
#USAGE
function foo {
    source "usage.sh"

    bar() {
      echo "baz"
    }

    case $1 in 
      bar) bar
      usage) usage $PWD/$0
    esac
}
foo $@

and reply by echoing the content between "#USAGE" tags, without the '#'s, and with all other spacing preserved. eg:

 bar     | does a thing

tmuxen.sh

SYN

tmuxen.sh provides functions for managing multiple-concurrent tmux sessions, with decoupled windows. That is to say, two different terminals (perhaps remote ) can connect to the same tmux session, observe different windows simultaneously, and (assuming they're on different windows) edit content simultaneously.

tmux already provides this functionality, but access to it is non-trivial, and leaves some garbage which needs to be collected periodically. This script aims to simplify and automate those processes.

in addition, tmuxen.sh represents an opinionated configuration of tmux, designed to be trivial to install and start using. It further provides a way to script ohe setup of a "shared" environment which will be syndicated across multiple sessions. See USE CASES for details thereupon.

INTERFACE

tmux spawn <session> [-w <script>]

spawns a new session with as the name, does not attach to the session. If

Something went wrong with that request. Please try again.