Skip to content

Commit 25634dd

Browse files
committed
shell helpers
1 parent c0d8f9c commit 25634dd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

home/bin/ff

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ def main():
9595

9696
# If --run/--debug matches, runs the specified command.
9797
if args.run == lineno:
98-
if (idx := line.find('|')) >= 0:
99-
line = line[:idx]
98+
if line.startswith('not '):
99+
line = line[4:]
100+
if (pos := line.find('|')) >= 0:
101+
line = line[:pos]
100102
line = f'{build_dir}/bin/{line}'
101103
if args.debug >= 0:
102104
line = 'rr record ' + line

home/bin/git-use

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ if [[ -z $1 ]]; then
33
echo git use $1
44
exit 1
55
fi
6-
git rebase $(git rev-parse --abbrev-ref origin/HEAD) "$1"
6+
git rebase $(git rev-parse --abbrev-ref origin/HEAD) "$1" "${@:2}"

0 commit comments

Comments
 (0)