Maybe your normally stoic main character has a funny habit of breaking the tension with an offhand remark or a silly phrase that he says at the most inopportune moments. One of the best ways to convey humor is through one of your point of view (POV) characters. Because if you're trying to make the reader laugh all the time, they won't be able to catch their breath and settle in for another laughing fit. There need to be peaks and valleys in your story. What do other authors do? Do you even need comedy in your book? If so, how much?Įven works that are considered comedies aren't all jokes. But before you start shoving jokes into your work in progress, consider the norms of your genre. In fact, authors in all different genres use humor to enhance their stories. Humor shouldn't be relegated to only comedies. But with the tips below, you can position your comedic story (or scene) for the ultimate effect. As a writer, it's important to know that not everyone will like your work. Now let’s say you’ve misspelled the command above again: sl -la /tmpīecause zsh is your friend, it already noticed your typo.Humor is subjective, so a funny story that gets one group of people laughing may not elicit so much as a smile from another group. To enable auto correction, you’ve to set: ENABLE_CORRECTION="true" It happens to all of us, we’re in hurry, hack something into the shell, hit the enter key, and then: sl -la /tmpīut there’s a really neat auto correction implementation in zsh, which (I think) is disabled by default. When it comes to shells, I like to type fast – sometimes too fast. When we talk about optimisation, we ultimately talk about speed. Of course there are more completions available, like usernames (e.g. The thing I really like the most about auto completion, is the completion of directory names: # while this is a lot of typing Type tar - and you’ll get a really nice help view: A - append to an archiveĪs you can see, you’ll not only get a cursor-selectable list of arguments, but you’ll get an inline argument description as well. Let’s say you want to create a tar ball, but you can’t remember the arguments for tar (shame on you). The nice thing about zsh is, I can press tab again, and then move with my cursor keys to select the right command.īut it will not only complete command, it will also complete arguments in a really nice way. So you expect no surprises here, right? I’ve to disappoint you, because zsh’s auto completion is kick-ass, and it will leave bash-completion in the dust!Īuto completion in zsh is done by hitting the tab key (like most reasonable shells):įor example, if I type ta , I get the following output: tabs tac tail tailf take tar tasksel taskset If you’re working optimised, you might already use a more advanced system like bash-completion. If you’re used to other shells – especially bash – you might want to say that auto completion is nothing new for you. And on the other hand, if you do keyboard shortcuts right, people watching your screen get astonished by your hacking. More optimised workflows means you get time for more important stuff, like enhancements of your environment, or spending time with your lovely ones. Everything in my shell (zsh, tmux), editor (vim, SublimeText) and operating system (Linux, OS X) needs to be keyboard optimised for fast access. I like my workflows to be optimised, and I’m a fan of keyboard shortcuts. When it comes to the amount of work to achieve a desired result, I’m kind of a lazy person.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |