Skip to content

Instantly share code, notes, and snippets.

View perlpunk's full-sized avatar

Tina Müller (tinita) perlpunk

View GitHub Profile
@JoeyBurzynski
JoeyBurzynski / Asset.sh
Created May 3, 2016 13:12
Bash Scripting: Check if a Bash Variable Has Been Set (Or Is Empty String)
# How to determine if a bash variable is empty?
# A variable in bash (and any POSIX-compatible shell) can be in one of three states:
#
# unset
# set to the empty string
# set to a non-empty string
# Most of the time you only need to know if a variable is set to a non-empty string, but occasionally it's important to distinguish between unset and set # to the empty string.
#
@obihann
obihann / sticky-panes.md
Last active March 1, 2018 12:45
tmux `sticky` panes

TMUX sticky panes

Step 1

Create the session that will manage the nested/sticky panes

  • create new session named shared

      $ tmux new -s shared
    
  • rename current window