From aa4f32a2eec77e95f53788de010c2c74ac050ea8 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 25 May 2023 12:34:25 +0800 Subject: Update --- bin/gpt/shellrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/gpt') diff --git a/bin/gpt/shellrc b/bin/gpt/shellrc index 1cdbce9..eeeec5d 100644 --- a/bin/gpt/shellrc +++ b/bin/gpt/shellrc @@ -1,3 +1,8 @@ +# Use vim to handle input +gptt() { + file=`mktemp` + vim $file && cat $file | gpt --skip +} # Ask GPT what's wrong with the last command h() { printf '%s\n\n%s' "$(fc -s 2>&1 >/dev/null)" "Tell me what's wrong with the command above" | \ -- cgit v1.2.3-70-g09d2