diff options
Diffstat (limited to '')
-rw-r--r-- | bashrc | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -60,12 +60,13 @@ todj () { $CMD $(find /home/lemon/Documents/Notes/journal -name "*$(date '+%Y-%m-%d')*") } -################################################################################################### +######################################################################### # This function takes two arguments as strings. The idea is to enable # passing file data into the function, such as a csv file or some code. -# Call like this openai_data "Please optimise the following function in python" "$(</path/to/file)" -# This is supposed to be a good way to read a file's contents in bash -################################################################################################### +# Call like this openai_data "Please optimise the following function in +# python" "$(</path/to/file)" This is supposed to be a good way to read a +# file's contents in bash +######################################################################### openai_data() { if [[ $# -ne 2 ]]; then echo "Give me two params!"; return; fi |