Hacker GitHub

← All repos

edc/bass

View on GitHub ↗ ★ 2,464 Python

Make Bash utilities usable in Fish shell

29 mentions on Hacker News by 25 people: 2 stories, 27 comments · first 2015-03-16 · latest 2024-07-31

Mentions per year 29 mentions · busiest year 2021 (6)
20082026
  1. …could seamlessly convert and run bash scripts on the fly.. It can. With a little help. I use this: https://github.com/edc/bass
  2. …I need nowadays just work (i.e. have Fish support out of the box). For all the rest, perhaps give https://github.com/edc/bass a try.
    comment by osmsucks · 2024-01-23 · in Oh My Zsh
  3. I've never needed it, but there is bass for this use-case: https://github.com/edc/bass
    comment by bin_bash · 2023-08-27 · in Fish – A friendly interactive shell
  4. I haven’t found much need to swap due to using bass https://github.com/edc/bass
    comment by stealthypoo · 2023-08-26 · in Fish – A friendly interactive shell
  5. …them once with fish_add_path? https://fishshell.com/docs/current/tutorial.html#path Or maybe use https://github.com/edc/bass
    comment by artemisart · 2023-08-26 · in Fish – A friendly interactive shell
  6. …is one of the first things I install after fish, then bass, z and a few other helper plugins. https://github.com/edc/bass https://github.com/jorgebucaran/fisher
    comment by csmattryder · 2023-08-26 · in Fish – A friendly interactive shell
  7. Use bass to drop down to bash from fish :) https://github.com/edc/bass
    comment by HopenHeyHi · 2023-04-23 · in My shell setup with Fish and Tmux (2021)
  8. bass can be helpful for some of those posix issues: https://github.com/edc/bass Another random tip: python virtualenv generates a activate.fish script that you should use instead of the plain activate script.
    comment by dangus · 2021-11-25 · in The fish shell is amazing
  9. …then import all the environment changes for you https://github.com/oh-my-fish/plugin-foreign-env https://github.com/edc/bass
  10. There is no need to change `$SHELL` :-/ you can use Bass ( https://github.com/edc/bass ) to execute any bash script and it will apply the environment variables to the current fish environment.
    comment by flying_sheep · 2021-05-17 · in Fish shell
  11. Or running the pasted scripts through bash in fish? I actually use this guy: https://github.com/edc/bass
    comment by _fullpint · 2021-05-17 · in Fish shell
  12. You might want bass ( https://github.com/edc/bass ) or replay.fish ( https://github.com/jorgebucaran/replay.fish ) if you need to run bash scripts that modify the shell. I personally use replay.fish (although I guess I haven't updated in a…
    comment by Hamuko · 2021-02-13 · in Alternative Shells
  13. …will change, but I don't see the win to divide my attention economy to it deeply, personally. [0]: https://github.com/edc/bass
    comment by no_wizard · 2021-01-19 · in Linux and Powershell
  14. …use of 'bass' before. The example they have is sourcing nvm's bash script so it's usable in fish. https://github.com/edc/bass
    comment by rgoulter · 2020-09-30 · in New Features in the Fish Shell
  15. Or via Bass[1], for things that modify the environment. [1] https://github.com/edc/bass
    comment by SAI_Peregrinus · 2020-09-29 · in New Features in the Fish Shell
  16. https://github.com/edc/bass Lets you use bash utilities from fish. So you can do things like `source` files and have it work. Also I prefer to use Fish only as an interactive shell, actual scripts can stay bash.
    comment by SAI_Peregrinus · 2020-04-17 · in Customizing Your Shell
  17. Most scripts are run, not sourced. Some tools support fish. bass[1] aims to handle the rest. [1] https://github.com/edc/bass
    comment by pseudalopex · 2018-12-30 · in Fish shell 3.0
  18. The bass plugin[1] works well. [1] https://github.com/edc/bass
    comment by SAI_Peregrinus · 2018-11-19 · in Ask HN: Best Command-Line Applications?
  19. If they do need to be sourced, you can use bass: https://github.com/edc/bass
  20. …variable settings to fish, but it’s a pain to have to do that (and remember wth it was called). [0] https://github.com/edc/bass
    comment by defined · 2018-02-01 · in Why Create a New Unix Shell?
  21. …with bass[1]. Typically, I use it when some kind of tool requires sourcing bash scripts. [1] https://github.com/edc/bass
  22. …into the shell itself to make transitions for bash and some esoteric edge cases easier to handle https://github.com/edc/bass Maybe adopt a package manager for plugins too? ;)
  23. The Bass wrapper script can help with some of the incompatibilities: https://github.com/edc/bass
    comment by ufo · 2017-01-15 · in Mastering Bash and Terminal
  24. You can use bass which solves this problem without porting the script to fish: https://github.com/edc/bass
  25. Bass might provide some help with that. https://github.com/edc/bass
    comment by hundkex · 2016-02-16 · in Fish Shell Design Principles
  26. …but if you have bash-based tools (like virtualenv but without counterpart in fish land), check out https://github.com/edc/bass . Bass allows you to use a bash tool in fish, by running the tool in bash and transporting changes in…
    comment by eddieplan9 · 2015-05-19 · in Fish shell
  27. …cited reasons for not using fish. shameless plug, but I made a utility to solve the problem: https://github.com/edc/bass So you can write `bass source /usr/local/bin/virtualenvwrapper.sh ';' mkvirtualenv env1`, which of course can be…