Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
jbz
@jbz@indieweb.social  ·  activity timestamp last week

🐟 Fish Shell 4.2 Released with Improved Autosuggestions / Linuxiac

「 A major internal shift comes with Fish now assuming UTF-8 encoding by default, even on systems without a UTF-8 locale. This means input bytes not valid UTF-8 will still round-trip correctly, ensuring older file paths or legacy encodings continue to work. However, Fish will no longer fall back to ASCII replacements for Unicode characters on non-multi-byte systems 」

#fishshell #opensource #shell
https://linuxiac.com/fish-shell-4-2-released-with-improved-autosuggestions/

  • Copy link
  • Flag this post
  • Block
Paweł Świątkowski boosted
Maikel 🇪🇺 🇪🇸
@maikel@vmst.io  ·  activity timestamp 4 months ago

This is how I do test-driven development in Elixir. This function is saved in .config/fish/functions so it preloads whenever I open the terminal. Fish shell is the one I've been using forever.

Then I can do either

onchange test/indie/domains_test.exs

OR

onchange test/indie/domains_test.exs --only dnssec

If I want to run specific tags only.

#Elixir#FishShell

function onchange
    if test (count $argv) -lt 1
        echo "Usage: onchange <file> [--only tag ...]"
        return 1
    end

    set file $argv[1]
    set args $argv[2..-1]

    echo "📡 Watching $file for changes..."

    while true
        inotifywait -e close_write,moved_to,create $file > /dev/null
        echo "🔁 Change detected! Running test_trace $file $args..."
        test_trace $file $args
    end
end
function onchange if test (count $argv) -lt 1 echo "Usage: onchange <file> [--only tag ...]" return 1 end set file $argv[1] set args $argv[2..-1] echo "📡 Watching $file for changes..." while true inotifywait -e close_write,moved_to,create $file > /dev/null echo "🔁 Change detected! Running test_trace $file $args..." test_trace $file $args end end
function onchange if test (count $argv) -lt 1 echo "Usage: onchange <file> [--only tag ...]" return 1 end set file $argv[1] set args $argv[2..-1] echo "📡 Watching $file for changes..." while true inotifywait -e close_write,moved_to,create $file > /dev/null echo "🔁 Change detected! Running test_trace $file $args..." test_trace $file $args end end
  • Copy link
  • Flag this post
  • Block
Maikel 🇪🇺 🇪🇸
@maikel@vmst.io  ·  activity timestamp 4 months ago

This is how I do test-driven development in Elixir. This function is saved in .config/fish/functions so it preloads whenever I open the terminal. Fish shell is the one I've been using forever.

Then I can do either

onchange test/indie/domains_test.exs

OR

onchange test/indie/domains_test.exs --only dnssec

If I want to run specific tags only.

#Elixir#FishShell

function onchange
    if test (count $argv) -lt 1
        echo "Usage: onchange <file> [--only tag ...]"
        return 1
    end

    set file $argv[1]
    set args $argv[2..-1]

    echo "📡 Watching $file for changes..."

    while true
        inotifywait -e close_write,moved_to,create $file > /dev/null
        echo "🔁 Change detected! Running test_trace $file $args..."
        test_trace $file $args
    end
end
function onchange if test (count $argv) -lt 1 echo "Usage: onchange <file> [--only tag ...]" return 1 end set file $argv[1] set args $argv[2..-1] echo "📡 Watching $file for changes..." while true inotifywait -e close_write,moved_to,create $file > /dev/null echo "🔁 Change detected! Running test_trace $file $args..." test_trace $file $args end end
function onchange if test (count $argv) -lt 1 echo "Usage: onchange <file> [--only tag ...]" return 1 end set file $argv[1] set args $argv[2..-1] echo "📡 Watching $file for changes..." while true inotifywait -e close_write,moved_to,create $file > /dev/null echo "🔁 Change detected! Running test_trace $file $args..." test_trace $file $args end end
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login