Skip to content

Instantly share code, notes, and snippets.

@olsonbg
olsonbg / MyPersonalConfigs.sh
Created November 26, 2016 19:22
Get and create, if requested, a directory or file name to store configuration files for scripts.
#!/bin/bash
#
# Get a directory name to store configuration files for my own scripts.
#
# The default directory will be '$XDG_CONFIG_HOME/MyPersonalConfigs,' or
# '$HOME/.config/MyPersonalConfigs' if $XDG_CONFIG_HOME is not defined.
#
# The 'MyPersonalConfigs' subdirectory is used to isolate configs from my own
# scripts from those of programs installed by the package manager.
#
@olsonbg
olsonbg / ssh-multi.sh
Created July 3, 2016 10:51 — forked from dmytro/ssh-multi.sh
Start multiple synchronized SSH connections with Tmux
#!/bin/bash
# ssh-multi
# D.Kovalov
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html
# a script to ssh multiple servers over multiple tmux panes
starttmux() {
if [ -z "$HOSTS" ]; then