plugin-foreign-env VS fish-shell

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

plugin-foreign-env

Run foreign bash scripts and capture exported environment variables (by oh-my-fish)

fish-shell

The user-friendly command line shell. (by fish-shell)
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
plugin-foreign-env fish-shell
5 320
212 24,593
0.9% 0.9%
2.2 9.9
9 months ago 2 days ago
Shell Rust
MIT License GNU General Public License v3.0 or later
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.

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:

fish-shell

Posts with mentions or reviews of fish-shell. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-22.
  • FAQ on the xz-utils backdoor – via a project dev
    1 project | news.ycombinator.com | 29 Mar 2024
    Reminds of the note at the bottom of Fish's releases. It's there because the build system cannot determine the current version for some reason. Hopefully that will go away now that they have switched to a different language / build system. The custom tarball is used by Arch Linux at the very least.

    https://github.com/fish-shell/fish-shell/releases/tag/3.7.1

    https://github.com/fish-shell/fish-shell/issues/7772#issueco...

    https://gitlab.archlinux.org/archlinux/packaging/packages/fi...

  • Oh My Zsh
    19 projects | news.ycombinator.com | 22 Jan 2024
  • Proposal for porting fish-shell from C++ to Rust
    1 project | news.ycombinator.com | 17 Jan 2024
  • Converting the Kernel to C++
    3 projects | news.ycombinator.com | 10 Jan 2024
    A recent practical example of the former: the fish shell re-wrote incrementally from C++ to Rust, and is almost finished https://github.com/fish-shell/fish-shell/discussions/10123

    An example of the latter: c2rust, which is a work in progress but is very impressive https://github.com/immunant/c2rust

    It currently translates into unsafe Rust, but the strategy is to separate the "compile C to unsafe Rust" steps and the "compile unsafe Rust to safe Rust" steps. As I see it, as it makes the overall task simpler, allows for more user freedom, and makes the latter potentially useful even for non-transpiled code. https://immunant.com/blog/2023/03/lifting/

  • Fish shell 3.7.0: last release branch before the full Rust rewrite
    9 projects | news.ycombinator.com | 1 Jan 2024
    And this discussion from November has an update on the progress: https://github.com/fish-shell/fish-shell/discussions/10123
  • Day 5 - More or less...
    3 projects | /r/linuxupskillchallenge | 7 Dec 2023
    We're using bash as our terminal shell for now (it is standard in many distros) but it is not the only one out there. If you want to test out zsh, fish or oh-my-zsh, you will see that there are a few differences and the features are usually the main differentiator. Try that, poke around.
  • Fish – Update on the Rust Port
    1 project | /r/patient_hackernews | 28 Nov 2023
    1 project | /r/hackernews | 28 Nov 2023
    7 projects | news.ycombinator.com | 26 Nov 2023
    They have a variety of reasons to move to rust, as outlined in their original rust discussion[1]. Mostly around finding other contributors, and adding an async/parallel mode they're comfortable with.

    [1] https://github.com/fish-shell/fish-shell/pull/9512

  • Devuan アップグレード: 4 から 5 Daedalus へ
    3 projects | dev.to | 4 Sep 2023

What are some alternatives?

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

babelfish - Translate bash scripts to fish

powerlevel10k - A Zsh theme

nushell - A new type of shell

starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

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

oursh - Your comrade through the perilous world of UNIX.

oh-my-fish - The Fish Shell Framework

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

xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.

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

tokyonight.nvim - 🏙 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins. Includes additional themes for Kitty, Alacritty, iTerm and Fish.