The command line is a powerful tool, and sadly forsaken by most of us.
The goal of this post is to reconcile some of you with the CLI (Command ...
For further actions, you may consider blocking this person and/or reporting abuse
An alternative to colorman with more options: fish-colored-man.
Btw, can you share your colorscheme? I took the liberty to look for it in your dotfiles repo but couldn't find it. Thanks for the post!
I use Neovim's man page viewing functionality for this. $MANPAGER is set to
nvim -c 'set ft=man' -
.I had no idea neovim had such a functionality. Just tried and looks really nice! Nice enough to really make me consider change to it. Thanks!
You mean my colorscheme for colorman ? I don't have one.
It's the default colors of the plugin.
No, I mean the terminal colorscheme, the one you see in, for example, your first gif.
The terminal in the gif is deepin-terminal with the default colorscheme as it's not customizable with this term.
But I think that what you're asking for is my prompt: neolambda for fish shell.
Thanks a lot!
I've been using ZSH for ages (but recently without oh-my-zsh) but I keep hearing good things about fish. Do you know any decent comparison article? Maybe I'll try it.
My main worry is that quick oneliners would not work there as they used.
I used zsh a long time ago when I was a student. It was more user-friendly than bash.
But as I didn't use since more than 15 years, I couldn't say more about the comparison with fish.
Recently I've installed zsh + oh-my-zsh as a POSIX alternative to fish, but it seems that many native features of fish (auto-completion, coloration, ...) have to be configured manually in zsh (through plugins or conf file).
Fish works great out of the box!
Actually I don't like autocompletion. It can reveal far too much when you are for example showing something for larger audience ;) So having that built-in in fish does not count for me as better. But I guess I'll give it another shot some time soon.
I get your point :)
But the real strength of fish is its ability to auto-complete commands and sub-commands, for example for git (branch , docker stop , ...). It's really powerful !
Fish is one of my favorite shells! nice to see it mentioned. great collection of resources by the way!
Have a look at spacefish, it's crazy fish theme with integrations with many, many languages and tools !
Will do! thanks
I try to learn more and more about how to use the CLI. My dev laptop that I use for university assigments runs Linux. I recently switch to zsh with ohmyzsh. I downloaded a popular theme which enables many useful visual cues. It has a solid auto completion and suggestion, besides many other useful features.
Regular
ls
does this with the-h
flag. In fact, so do a lot of CLI apps, likedu
anddf
for example.try best tig integration for vim.
github.com/iberianpig/tig-explorer...
There are much fish ((f)riendly (i)nteractive (sh)ell) users because of the autocompletion, syntax highlighting etc. But actually fish is much less compatible with other shells. For example, ZSH & Bash are really similar, and they can interop with "many" scripts. You can get similar features using plugins. I do not think there is a reason to use fish.
I use both fish and bash. Fish is my term shell and bash is my scripting shell.
I agree with you on fish not being compliant with bash and other bourne shells. That's because fish isn't 100% POSIX compliant.
I actually just tried the Fish shell this past week and while I absolutely loved how it had somany great tools right out of the box, I ended up having to go back to my old trusty ZSH + Oh-My-ZSH combo.
Because fish isn't fully bash compatible (commands like && don't work.) it broke many plugins I rely on in in VSCode, as well as a few ruby cli tools I use.
I loved it, but the headache and hassle just wasnt worth it.
To get most of the same gains, I just use ZSH + Oh-My-ZSH + Spaceship ZSH.
Everything just works.
Yes, spaceship is also great with fish. I love their prompt !
could you share the fonts configured on your setup to properly display Unicode characters like
\uE74E
and\uE749
?What do you think about fselect to search files with SQL-like queries?
It seems powerful but I don't use so much file search in my every day tasks.
Fantastic article, thank you for inspiration!
Maybe TermToSVG could be also mentioned to record some terminal sessions !
The main advantage/disavantage is it output the session as an animated SVG !
Does that apply to using
docker-compose exec
locally? When I try to rundocker-compose exec tail -f log/development.log | jq
I "Invalid numeric literal at line 1, column 11"What powerline font is used in the example:
It's monaco-powerline.
Check out lnav for logfiles
Thanks, I'll have a look on it !
This one highlights keywords you specify in a command output:
github.com/paoloantinori/hhighlighter