new function for copying text to chatgpt

This commit is contained in:
Hadi
2025-04-01 20:22:23 +02:00
parent 757224a73f
commit eb1f6b2e8b

View File

@@ -17,7 +17,9 @@ in {
}; };
historySubstringSearch.enable = true; historySubstringSearch.enable = true;
initExtraFirst = '' initExtraFirst =
#bash
''
bindkey -e bindkey -e
${if fetch == "neofetch" then ${if fetch == "neofetch" then
pkgs.neofetch + "/bin/neofetch" pkgs.neofetch + "/bin/neofetch"
@@ -34,6 +36,16 @@ in {
sesh connect $session sesh connect $session
} }
function chatgptlist(){
for arg in "$@"; do
echo "$arg:"
echo "\`\`\`"
cat "$arg"
echo "\`\`\`"
echo
done
}
zle -N sesh-sessions zle -N sesh-sessions
bindkey -M emacs '\es' sesh-sessions bindkey -M emacs '\es' sesh-sessions
bindkey -M vicmd '\es' sesh-sessions bindkey -M vicmd '\es' sesh-sessions