Skip to content

Commit 21b8c87

Browse files
committed
shell helpers
1 parent c0d8f9c commit 21b8c87

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

home/bin/ff

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

9696
# If --run/--debug matches, runs the specified command.
9797
if args.run == lineno:
98+
if line.startswith(' not '):
99+
line = line[idx+5:]
98100
if (idx := line.find('|')) >= 0:
99101
line = line[:idx]
100102
line = f'{build_dir}/bin/{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)