Skip to content

Instantly share code, notes, and snippets.

@jamesgraves
jamesgraves / es.sh
Created August 6, 2021 21:21
GNU Screen startup script
#!/bin/bash
#
# Script to easily re-connect to named GNU screen sessions.
#
# Normal usage is:
# es.sh foobar
# which connects to the screen session named 'foobar' if it
# already exists, or creates a new session with that name.
#
# Invoked without a name, it will list the current screen
--[[
Tiltrotor AI.
Goals:
For large airships to provide a stable gun platform. Controls dediblades mounted on spinblocks.
Altitude set by pilot. Can stop and land on water.
Roll and pitch stability.
Yaw via differential tilt of starboard / port nacelles.
# Snippit to put in your ~/.bash_profile.
# This will look for a running ssh-agent process on your machine,
# and connect to it if possible. Otherwise it will start up a
# new instance.
# If you ever wanted to put it in your .bashrc (not recommended)
# be sure to delete all print statements.
export SSH_ENV=$HOME/.ssh/environment_${HOSTNAME}