Skip to content
Close Menu

    Subscribe to Updates

    Get the latest news from tastytech.

    What's Hot

    Protecting the Recovery Control Plane: A VCF 9.1 Management-Component Backup and Fleet DR Runbook

    August 7, 2026

    7 Best Web Crawling Tools and APIs in 2026

    August 7, 2026

    Building an IT AI Insight Engine: From Static Knowledge to Operational Context

    August 7, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    tastytech.intastytech.in
    Subscribe
    • AI News & Trends
    • Tech News
    • AI Tools
    • Business & Startups
    • Guides & Tutorials
    • Tech Reviews
    • Automobiles
    • Gaming
    • movies
    tastytech.intastytech.in
    Home»Tech Reviews»Ars Asks: Share your shell and show us your tricked-out terminals!
    Ars Asks: Share your shell and show us your tricked-out terminals!
    Tech Reviews

    Ars Asks: Share your shell and show us your tricked-out terminals!

    gvfx00@gmail.comBy gvfx00@gmail.comMay 7, 2026No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email


    The timer_stop function also has the job of converting the timer into a human-readable format, and it’s probably messier than it needs to be. I’m no developer, though, so this is what Past Lee settled on after a few hours of searching through examples.

    Table of Contents

    Toggle
    • Doing it in fish for folks like me
    • A splash of color
    • The terminal itself
      • Related posts:
    • Rivals season 2 review: Jilly Cooper bonkbuster is still as steamy as ever — but troubling tensions ...
    • Australia will consider requiring app stores to block AI services without age verification
    • Is Your Phone Actually Worth It? Share Your Thoughts

    Doing it in fish for folks like me

    That’s for bash when I’m ssh’d into one of my Linux hosts, but I run fish on MacOS. I have a separate fish function for getting the same results there, complete with gross hacks for turning the measurement into human-readable form. I made this code, and I am unapologetic. Witness my cobbled-together StackOverflow-sourced kludge.

    function fish_prompt --description 'Write out the prompt'
        # Save the last status
        set -l last_status $status
    
        # Calculate the command duration if available
        set -l cmd_duration ""
        if set -q CMD_DURATION
            # Convert milliseconds to microseconds for more precise comparison
            set -l duration_us (math "$CMD_DURATION * 1000")
    
            # Calculate different time units
            set -l us (math "$duration_us % 1000")
            set -l ms (math "floor($duration_us / 1000) % 1000")
            set -l s (math "floor($duration_us / 1000000) % 60")
            set -l m (math "floor($duration_us / 60000000) % 60")
            set -l h (math "floor($duration_us / 3600000000)")
    
            # Format duration string
            if test $h -gt 0
                set cmd_duration (string join '' "(" $h "h" $m "m)")
            else if test $m -gt 0
                set cmd_duration (string join '' "(" $m "m" $s "s)")
            else if test $s -ge 10
                set -l fraction (math "floor($ms / 100)")
                set cmd_duration (string join '' "(" $s "." $fraction "s)")
            else if test $s -gt 0
                set cmd_duration (string join '' "(" $s "." (printf "%03d" $ms) "s)")
            else if test $ms -ge 100
                set cmd_duration (string join '' "(" $ms "ms)")
            else if test $ms -gt 0
                set -l fraction (math "floor($us / 100)")
                set cmd_duration (string join '' "(" $ms "." $fraction "ms)")
            else
                set cmd_duration (string join '' "(" $us "us)")
            end
        end
    
        # Define unicode symbols for status
        set -l checkmark "✓"
        set -l cross "✗"
    
        # Colors
        set -l normal (set_color normal)
        set -l dark_gray (set_color 555555)
        set -l blue (set_color -o blue)
        set -l red (set_color red)
        set -l green (set_color green)
        set -l purple (set_color -o purple)
    
        # First line
        echo # New line
        echo -n -s $dark_gray "["(date +%T)"] $last_status " # Time in brackets and exit status
    
        # Status indicator with exit status
        if test $last_status -eq 0
            echo -n -s $green $checkmark
        else
            echo -n -s $red $cross
        end
    
        # Actually echo the duration
        echo -n -s $dark_gray " $cmd_duration"
    
        # Do the rest of the prompt
        echo
        set -l host_color $purple
        echo -n -s $host_color $USER "@" (prompt_hostname) $normal ":" $blue (prompt_pwd) $normal " \$ "
    end

    A splash of color

    Spending my formative years immersed in ANSI BBS graphics has probably made me a little more fond of colorful text in my terminal than the average frumpy, button-downed admin. Look, I know some folks feel that syntax highlighting and colors in general kill comprehension and encourage skimming, but what can I say? I love them and rely on them. Perhaps I skim too much, but so be it. You can take my colorful shell tools from my cold, dead hands.

    To that end, I lean on a little program called GRC (for Generic Colorizer) to add highlighting and coloration to other tools. It’s broadly available and works without any additional configuration.


    Image showing the before and after of using GRC with ping

    Nothing wrong with a little color!

    Lee Hutchinson

    Nothing wrong with a little color!

    Lee Hutchinson


    Image showing the before and after of using ip a with ping

    Nothing wrong with a little color!

    Lee Hutchinson

    There’s a bit of aliasing (which I keep in .bash_aliases like a good citizen) to make colorful output the defaults on some common commands:

        alias ls="ls --color=auto"
        alias ll="ls -AlFh --group-directories-first"
        alias df="grc df -h"
        alias du='grc du -h'
        alias free="grc free -h"
        alias ping='grc ping'
        alias traceroute="grc traceroute"
        alias ip='grc ip'

    I’m also a big fan of making my numbers human-readable, and the -h switch is therefore applied liberally.

    (Do note that wrapping commands like ip in GRC can sometimes do weird things if you’re piping its output into something else. Use caution. Or don’t! It’s your computer, knock yourself out!)

    The terminal itself

    Sharp-eyed readers will note from the screenshots that I’m using MacOS’s Terminal.app for my terminal program, despite there being far better options. I suppose the excuse I have is that I’m comfy with Terminal.app and nothing has pulled me off of it. I’ve test-driven the usual suspects—Ghostty, Alacritty, the mighty iTerm2 with its awesome tmux windowing integration, and even fancy new reinterpretations of the terminal experience like Warp.

    Related posts:

    Nvidia sells tiny new computer that puts big AI on your desktop

    Why Ancestry Is the Best At-Home DNA Testing Kit in 2025

    Patriots vs. Seahawks time, where to watch and more

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleAll Star Fox games that the new Star Fox game is technically a remake of
    Next Article How to Set Up Claude Code Channels Locally
    gvfx00@gmail.com
    • Website

    Related Posts

    Tech Reviews

    Behind every goal: the technology delivering the World Cup to billions

    August 7, 2026
    Tech Reviews

    Ubiquiti UniFi Protect Review: 2026’s Best Home Surveillance System

    August 7, 2026
    Tech Reviews

    Ford Unveils New, Affordable Electric Truck, the Fathom

    August 6, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Black Swans in Artificial Intelligence — Dan Rose AI

    October 2, 2025216 Views

    Every Clue That Tony Stark Was Always Doctor Doom

    October 20, 2025141 Views

    We let ChatGPT judge impossible superhero debates — here’s how it ruled

    December 31, 2025109 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram

    Subscribe to Updates

    Get the latest tech news from tastytech.

    About Us
    About Us

    TastyTech.in brings you the latest AI, tech news, cybersecurity tips, and gadget insights all in one place. Stay informed, stay secure, and stay ahead with us!

    Most Popular

    Black Swans in Artificial Intelligence — Dan Rose AI

    October 2, 2025216 Views

    Every Clue That Tony Stark Was Always Doctor Doom

    October 20, 2025141 Views

    We let ChatGPT judge impossible superhero debates — here’s how it ruled

    December 31, 2025109 Views

    Subscribe to Updates

    Get the latest news from tastytech.

    Facebook X (Twitter) Instagram Pinterest
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    © 2026 TastyTech. Designed by TastyTech.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.