Skip to content

Commit 8b08b0f

Browse files
committed
updates
1 parent b8d85e3 commit 8b08b0f

File tree

4 files changed

+32
-47
lines changed

4 files changed

+32
-47
lines changed

find-used-ref-yaml.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

get-ref-yaml.sh

Lines changed: 0 additions & 34 deletions
This file was deleted.

git-open-modified

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/bash
2+
3+
set -e
4+
5+
# count of most recent commits to open files from
6+
NUM_COMMITS=$1
7+
8+
# count defaults to 1
9+
if [[ -z "$NUM_COMMITS" ]]; then
10+
NUM_COMMITS="1"
11+
fi
12+
13+
# open the files in Sublime Text
14+
subl -add $(git log -"$NUM_COMMITS" --name-only --pretty=format: --diff-filter=ACMR)
15+
16+
# open the files in VS Code
17+
# code $(git log -"$NUM_COMMITS" --name-only --pretty=format: --diff-filter=ACMR)

move-to-bin.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
source_dir="."
4+
5+
dest_dir="$HOME/bin"
6+
7+
for file in "$source_dir"/*.sh; do
8+
if [ "$file" != "$source_dir/move-to-bin.sh" ]; then
9+
mv "$file" "$dest_dir/"
10+
fi
11+
done
12+
13+
sudo chmod a+x "$dest_dir"/*.sh
14+
15+
echo "Moved and made *.sh files executable in $dest_dir"

0 commit comments

Comments
 (0)