Is there a way to make the part of the command you write colorful (bash)?

This page summarizes the projects mentioned and recommended in the original post on /r/commandline

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • thefuck

    Magnificent app which corrects your previous console command.

  • It’s not stupid at all! It’s your shell, so make it work for you! Off the top of my head, you can try thefuck to try to replace !! if it’s something you’re willing to adjust to. IIRC, you can even change the command, so you might be able to set it up as !! in fish. I don’t know an elegant solution for the prompt string off the top of my head since I don’t really use fish, but I’m sure there would be plenty of folks around who would be happy to help, either here, or you could try in r/fishshell. A bit of a longer shot, but you could also try something like starship if you don’t mind messing with its configs. Whatever you end up doing, just remember it’s your shell, and there’s nothing wrong with making your tools work for you!

  • plugin-bang-bang

    Bash style history substitution for Oh My Fish

  • Take a look at fish plugins. Use oh my fish or fisher for plugin management and install bang bang. It's what you're looking for! There are also lists of plugins and themes/prompts, you may be interested in those too.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • zsh-syntax-highlighting

    Fish shell like syntax highlighting for Zsh.

  • If you can consider switching to other shell, zsh will be better choice than fish (it's a POSIX shell, so waaaaaay more similar to bash than fish). In this case, there is a great plugin: https://github.com/zsh-users/zsh-syntax-highlighting to do what you want.

  • ble.sh

    Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.

  • BUT if you wan't to stick with bash, you can use https://github.com/akinomyoga/ble.sh. It's not an ideal choice (for me - I'm not happy with the knowledge about something wrapping my entire shell), but it works as expected.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • better than admitting I'm too too lazy to correct the command

    2 projects | /r/linuxmemes | 4 Jun 2023
  • Happens more often than I'd like to admit...

    4 projects | /r/linuxmasterrace | 19 Apr 2021
  • We shall call this: Canadian Linux

    3 projects | /r/linuxmasterrace | 25 Jan 2021
  • Control Linux based distros using hand gestures using OpenCV, GTK, Mediapipe

    2 projects | news.ycombinator.com | 14 Apr 2024
  • Thefuck: Correct errors in previous console commands

    1 project | news.ycombinator.com | 1 Apr 2024