![]() See screenshots wiki for more color schemes examples. zsh-autosuggestions to have browser-like autocompletions.zsh-syntax-highlighting to have commands colorized.FiraCode Nerd Font with ligatures as primary font (16px size).Preview shows spaceship prompt setup with: What the difference between Spaceship and Powerlevel10k (with Lean style)? What the difference between Spaceship and Starship? What's the weird character in front of a section?ĭo spaceship remove and SPACESHIP_SHOW=false do the same thing? What's the weird symbol before the git branch? How do I get command completion as shown in the demo GIF? Please enable JavaScript to view the comments powered by Disqus.Why doesn't my prompt look like the preview? autojump - The Lazy Way to Change Directories.Improve Your oh-my-zsh Startup Time (Maybe).Automatically Expanding zsh Global Aliases As You Type.Shell Environment Upgrade and Cleanup: Part 1 - Requirements and Planning.Shell Environment Upgrade and Cleanup: Part 2 - Migrating from oh-my-zsh to Prezto.Automatically Expanding zsh Global Aliases - Simplified.Improving the Behavior of the cd Command in Git Repositories.A Couple of Useful Snippets from My Shell Config.A Small Update to `zsh-dwim`: rsync and dstat.zsh-dwim: Most Recent Remote File Completion.zsh-dwim Now Works on Mac OS X and FreeBSD.More Powerful Zsh Incremental History Search Using Zaw.zsh-dwim: Transformations for the Find Command.shstack: Persistent and Easy to Use Stacks Shared Between Shell Sessions.zsh-dwim: Small Update For apt and dpkg.zsh-dwim: New Transformations for watch, modprobe, and dpkg.Getting Notified When Long-Running Zsh Processes Complete.zsh-dwim: I Feel Like a Genius, Belatedly.zsh-dwim: Now With Faster Startup Times, Modular Configuration, and More.zsh-dwim: Simple chmod and chattr Transforms Are Too Simple.« A Year of Native Linux Indie Games on My Arcade Cabinet - 2011 Native Linux Games for an Arcade Cabinet: Super Meat Boy » Posted by Pat Regan Jan 24 th, 2012 Shell Source $ZSH/custom/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ![]() Here’s what my zsh-syntax-highlighting configuration looks like: ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) I just moved zsh-syntax-highlighting into my custom directory and loaded it manually. I thought this was a bit strange because oh-my-zsh loads plugins before it runs anything in ~/.oh-my-zsh/custom. When I did, this it was acting like the colors were not already defined. I tried setting the color variables in a file in my ~/.oh-my-zsh/custom directory while loading zsh-syntax-highlighting as a plugin from my ~/.oh-my-zsh/plugins directory. That will probably help me catch mismatched and unescaped quotes pretty easy. It also does a good job of quote highlighting. It does match pairs of brackets, though, so maybe I can get in the habit of using those instead of old bash-isms… Highlighting makes that slightly more, obvious but I sure wish the done would highlight red if it didn’t match a do. I use one-liner for loops all the time, but I’m very good at leaving out the do. Highlighting reserved words should be pretty helpful. It is nice to catch typos before trying to execute a command. Highlighting a misspelled command in red is very nice. I may not like all the extra noise, but there are a few things that I’m finding to be very useful. I was especially unhappy with the underlined path names. Every correctly typed command, every file name, and every globbing character is highlighted in one way or another. Too many things are highlighted by default for my tastes. It looked like it would be pretty handy, so I decided to try it out for a couple of weeks. I recently read about this nifty new real-time syntax highlighter: zsh-syntax-highlighting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |