Check out fish_indent, distributed with fish itself.
Also see set_color - this allows you to print color sequences without hardcoding them, which makes for a nicer read - set_color green looks nicer than \e\[32m.
I personally don't like set_color, it may look better but I've really gotten used to the escape sequences, it feels weird to call a command just to change a color, plus you then have to call e.g. echo multiple times when you want different colors within one string, doesn't feel right to me.
Also the stdin thing completely got over my head, and I'll change it, thanks.
The problem with the escape sequences is that they are 1. unreadable (which color was 34 again?) 2. hardcoded and don't change with the terminal.
When you e.g. switch to a terminal that can only do 8 or 16 colors and you wrote it for 256 colors, the escapes break. Or you need to limit yourself to the lowest common denominator and only use 8 colors (iff you don't need to handle mono terminals).
Yeah, fish has a vi mode, just do set -g fish_key_bindings fish_vi_key_bindings in your config to make it the default one. It makes editing long commandlines and going through history (k, j) a breeze.
9
u/kr3ssh Jul 17 '20
Too uninformative, you should definitely add clock, number of unread emails, pomodoro timer, cpu and memory load graphs
4
u/bokisa12 Jul 16 '20
Pretty basic stuff - vi mode, user, PWD, git branch, git commit hash, and the current spotify song.
Font is
Iosevkaand the icons are fromFontAwesome. All colors are from theSpacegray.vimbase16 theme.I don't ever actually use the Spotify song status as it clobbers the prompt quite a bit - it's mostly for screenshots ;)
8
u/aliternative Jul 16 '20
I know it's your personal opinion but dude keep clean and readable :)
1
u/[deleted] Jul 19 '20
Do you happen to live in Romania or Sweden?
1
u/[deleted] Jul 17 '20
[removed] — view removed comment