# this uses bat (called batcat on debian)Įxport MANPAGER = "sh -c 'col -bx | batcat -l man -p'" If you add the following to your shell configuration file, you will get highlighted man pages (as above). You can use bat instead of cat to add syntax highlighting to output. You can read this guide on how to do this. If you want to change these colours and use colours from your colour scheme, you need to change the LS_COLORS variable. These colours are not sourced from your colour scheme. The default colour for directories is bold blue, and bold yellow for files. I chose lsd because it offers a bit more control over appearance than exa. These applications offer some visual tweaks, but vary on the amount of styling you can do. You can see that lsd uses a folder icon from the nerd font for folders, and breaks the list into columns. For example, you can use lsd or exa instead of ls. ![]() You can install command-line applications if you want to augment the appearance of some standard applications. There may be a script out there that does this, I haven’t searched! Source ~/.config/zsh/scripts/zsh-syntax-highlighting.zshīash does not have an equivalent capability, unfortunately. You just need to download the script somewhere and source the script in your. Many people add this through Oh My Zsh, but it is not necessary to install Oh My Zsh. You can see that when an incorrect command is typed, it is colored in red. zshrc, or use the zsh-syntax-highlighting plugin (script) to make it more straightforward. If you use Zsh, you can add syntax highlighting to the commands you type, as you type. These are the most common ones: alias ls = 'ls -color=auto' You can make aliases which include the -colors=auto option. I guess these 3 things are what most people do in some shape or form.Īnd this is how my terminal looks! Simple and minimal is my preference.īeyond that, you can make tweaks to use colours in more places. I use it to add: git info, low battery indication, and package/versioning info for some languages. It’s got it’s own config with a wide array of options to customize the text in every conceivable way. I installed Starship to make a custom prompt that works in a few different shells. ![]() Modify the prompt text: You can configure the text yourself, or try a prompt theme such as powerlevel10k or pure.These icons can be used in your text prompt and are used by some command-line applications to give more of a modern UI-feel. Nerd fonts add icons to popular monospace fonts. If you are searching, this repo is a great source for colour schemes for many different terminal apps. Change the colour scheme: I made my own colour scheme. ![]() There isn’t a lot of options for making it stylish, but you can make it feel more personal with a few changes. One thing that stuck out was the terminal.Ī terminal is a dark rectangle with text. I decided to give my laptop a virtual makeover recently.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |