aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/gpt
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-08-09 21:10:31 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-08-09 21:10:31 +0800
commit9b7283a567f350c8f4776a57945c91c3847c9866 (patch)
treeae49875db4aad0234a17baccef5152a410ae66b8 /bin/gpt
parenta178d143fa3060822365665f15ad5b2d7950313c (diff)
Update
Diffstat (limited to 'bin/gpt')
-rw-r--r--bin/gpt/shellrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gpt/shellrc b/bin/gpt/shellrc
index eeeec5d..d7fcb61 100644
--- a/bin/gpt/shellrc
+++ b/bin/gpt/shellrc
@@ -4,7 +4,7 @@ gptt() {
4 vim $file && cat $file | gpt --skip 4 vim $file && cat $file | gpt --skip
5} 5}
6# Ask GPT what's wrong with the last command 6# Ask GPT what's wrong with the last command
7h() { 7gpth() {
8 printf '%s\n\n%s' "$(fc -s 2>&1 >/dev/null)" "Tell me what's wrong with the command above" | \ 8 printf '%s\n\n%s' "$(fc -s 2>&1 >/dev/null)" "Tell me what's wrong with the command above" | \
9 gpt --skip 9 gpt --skip
10} 10}