You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello sir,
Sorry I don't have time to learn to create a pull request. I've made a small improvement over your cheat. Except what said in the title, it will also put the cheat and user input into the bash history, also added a command sucheat. With it you can run command like the embed cheat, which I can't get to work in one line.
I am still trying to get the default value for a variable to work.
My cheat.sh is at https://gist.github.com/QiangF/565102ba3b6123942b9bf6b897c05f87
The format for a cheat is:
comment
command
variables
more comment
The text was updated successfully, but these errors were encountered:
No, wait, don’t close this! I was going to look at this, only I couldn’t find the time and it got pushed back further and further on my agenda… sorry :(
I don’t really like the multiline format with explicit separator lines. However, multi-line support in general is probably a good thing. What if we use read instead of read -r? Then you can use a backslash to continue the current line:
Force (unreachable NFS) Lazy unmount:\
Detach the filesystem from the filesystem hierarchy now, and cleanup all\
references to the filesystem as soon as it is not busy anymore.
umount -f -l "$mounting_point"
mounting_point:mounting point
(Note that the line breaks won’t appear in the read content.)
Adding the cheat to history sounds like a good idea, but why do you also add the cheat $* line to history? As far as I can tell, that should already be present in the history since that’s the command you just ran.
I don’t really see the need for sucheat. Your embed example can, I think, be written in one command as:
Hello sir,
Sorry I don't have time to learn to create a pull request. I've made a small improvement over your cheat. Except what said in the title, it will also put the cheat and user input into the bash history, also added a command sucheat. With it you can run command like the embed cheat, which I can't get to work in one line.
I am still trying to get the default value for a variable to work.
My cheat.sh is at https://gist.github.com/QiangF/565102ba3b6123942b9bf6b897c05f87
The format for a cheat is:
comment
command
variables
more comment
The text was updated successfully, but these errors were encountered: