oursh VS plugin-foreign-env

Compare oursh vs plugin-foreign-env and see what are their differences.

oursh

Your comrade through the perilous world of UNIX. (by nixpulvis)

plugin-foreign-env

Run foreign bash scripts and capture exported environment variables (by oh-my-fish)
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
oursh plugin-foreign-env
2 5
67 212
- 0.9%
5.8 2.2
2 months ago 8 months ago
Rust Shell
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

oursh

Posts with mentions or reviews of oursh. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-23.
  • Nsh: A fish/bash-like Posix shell in Rust
    9 projects | news.ycombinator.com | 23 Oct 2021
    There is also https://github.com/nixpulvis/oursh which wants to be POSIX compatible with its own extensions. Actually I would prefer if a new shell focuses on bash compatibility.

    If features are integrated, then I would probably want to have something about error handling because it is difficult to get right in bash even with shellcheck¹ and gets just worse when things run in parallel.

    ¹ https://www.shellcheck.net/

  • A Better Shell
    9 projects | news.ycombinator.com | 10 Sep 2021
    A lot of this has to do with the integration between the Terminal and the Shell. A project that came up recently that seems to take on a few of the issues is https://blog.warp.dev/how-warp-works. I've been meaning to write up a proper critique of this project at some point, but I keep getting side-tracked.

    I also want a replacement for `fish`, however it's a pretty tall order to implement what I have in mind, and I got a bit stuck trying to find the right abstractions for background job management in Rust (there's a lot going on). But I genuinely believe a multi-language shell with POSIX support will finally allow us to move forward in the terminal environment. UI/UX issues like ctrl-c, window management, and everything else can be implemented as derivations from POSIX, or additions.

    While somewhat tangential to the main thread of this post, I'll still leave my (incomplete) shell here for anyone who's interested. https://github.com/nixpulvis/oursh. The README has a decent description of features I want off the bat, and there's a bunch of design level issues in the tracker.

    I'll never accept the death of the Terminal environment.

plugin-foreign-env

Posts with mentions or reviews of plugin-foreign-env. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-07.
  • Unable to setup GUIX_PROFILE with Fish
    1 project | /r/GUIX | 24 Jun 2023
    I am not using Guix's Fish because right I just installed it and was hoping to kinda get my packages up to snuff for what I keep on my desktop. Though I was about to install foreign-env via omf and that seems to work! I am super new to Guix so I still gotta read up on Guix Home. I literally have only installed like 6 packages right now haha.
  • Our Roadmap for Nix
    22 projects | news.ycombinator.com | 7 Aug 2022
    The official installer leverages an initialization script, to be sourced at shell init time, which is written in POSIX shell. Fish can't just source it because it's not compatible with POSIX shell.

    > I then searched the Internet and found a very "creative" workaround for Arch users that didn't work either.

    Arch users shouldn't need anything special here.

    You can use fenv¹ to source it, you can translate it to bash using babelfish, or you can exec into fish after running bash to log in (make sure to set $SHELL after if you choose that option). Just make sure you do it as early as possible if you want to use things installed by Nix in your other Fish config snippets.

    I think Home Manager will also take care of this for you. (The other module systems, Nix-Darwin and NixOS, both do.)

    If you wanna do it like NixOS does, you can install Fish via Nix and then create your own preinit environment script in /etc/fish. This has the advantage of setting up your Nix environment variables before any other config is sourced. You can take a look at it here, which also explains some of the Fish initialization process: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/p...

    and here's where the hooks go in the Fish package, where the comments describe the Fish initialization process in detail as well as why things are done this way on NixOS: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/p...

    1: https://github.com/oh-my-fish/plugin-foreign-env

    2: https://github.com/bouk/babelfish

  • Why not fish
    1 project | /r/archlinux | 4 May 2022
    That's just not true, most stuff already has a fish equivalent, and for the minority which doesn't there are plugins like foreign-env
  • Nsh: A fish/bash-like Posix shell in Rust
    9 projects | news.ycombinator.com | 23 Oct 2021
  • Trouble with fish shell setting environment variables at login
    1 project | /r/fishshell | 21 Mar 2021
    I'm also interested in the correct way of doing this. Right now, I cheat by using the fenv plugin to source a bash ~/.profile file:

What are some alternatives?

When comparing oursh and plugin-foreign-env you can also consider the following projects:

busybox-w32 - WIN32 native port of BusyBox.

babelfish - Translate bash scripts to fish

datastation - App to easily query, script, and visualize data from every database, file, and API.

nushell - A new type of shell

crosh - Minimal CROss-platform SHell (WIP, code is not real yet)

fish-shell - The user-friendly command line shell.

nsh - A command-line shell like fish, but POSIX compatible.

flake-utils - Pure Nix flake utility functions [maintainer=@zimbatm]

homebrew-emacs-plus - Emacs Plus formulae for the Homebrew package manager

nix-doc - An interactive Nix documentation tool providing a CLI for function search, a Nix plugin for docs in the REPL, and a ctags implementation for Nix script

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