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/env bash | |
set -ex | |
rm -fr p1 p2 lib lib.git | |
( | |
mkdir lib p1 p2 | |
git init --bare lib | |
git init p1 | |
git init p2 |
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
reviewed: | |
- dan: | |
review_title: | |
review_description: | |
review_count: | |
reviewer_name: | |
reviewr_city: | |
- mark: | |
review_title: | |
review_description: |
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
my_list: | |
- foo | |
- bar | |
- > | |
my very long | |
list item | |
all on one line | |
- "my very long | |
list item | |
all on one line" |
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
# hack is a function | |
hack () { | |
local dir | |
if [ -d "$1" ]; then | |
dir="$1" | |
else | |
dir="$(perl -MPIR -wE 'my $iter=PIR->new->skip_vcs->directory->iname(shift)->iter("$ENV{HOME}/git"); say $iter->()' $1)" | |
fi | |
if [ -n "$dir" -a -d "$dir" ]; then | |
tmux new-window -c "$dir" -n "$(basename "$dir")" |