This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
create_session() { | |
# robustly split the space separated list of window names. | |
read -r -a WINDOWS <<< "$NAMES" | |
# override parameter list with names of windows. | |
set -- "${WINDOWS[@]}" | |
# create session with first window argument. | |
tmux new -d -s "$SESSION" -n "$1" || return 1 | |
shift | |
# `seq 0` actually produces the output `1 0` thus the script would |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# $# - arguments passed to the program. | |
while [[ $# -gt 0 ]] | |
do | |
case "$1" in | |
-h|--help) | |
PROG_NAME=$(basename "$0") | |
echo "$PROG_NAME" | |
echo "A note creator for zettelkasten format." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import subprocess as sp | |
import os | |
import argparse | |
import sys | |
def clap(args, utils): | |
parser = argparse.ArgumentParser(prog='PyRun', description='Script orchestration utility.') | |
parser.add_argument('util', choices=utils, help='Script to be ran') |