bash-cache
spaceship-prompt
Our great sponsors
bash-cache | spaceship-prompt | |
---|---|---|
6 | 32 | |
68 | 19,103 | |
- | 0.8% | |
0.0 | 6.6 | |
over 1 year ago | 13 days ago | |
Shell | Shell | |
GNU General Public License v3.0 only | MIT License |
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.
bash-cache
-
Why is it that a command run from the terminal command line produces line break but the same command run within bash script has no line break/
This is usually what a caller expects, but it's definitely surprising when it isn't. I encountered this with my bash-cache library because simpler approaches to caching commands will use command substitutions which turns out to be lossy (because it drops any trailing newlines).
-
Passing a command with double quotes to a function
Is the goal of your cache function to cache a command if it's been run before? If so you might like to use my bash-cache library :) Even if it's not quite what you're looking for you can poke around the code for some inspiration, it implements a function decorator pattern and demonstrates some hairy uses of eval.
-
New release of bkt, a subprocess caching utility
For another pure-bash solution (though it writes to disk, not in-memory arrays) check out my bash-cache library :) it's an older project that motivated bkt but I still use both. There's some terrifying bash patterns in bash-cache as well!
-
Beautiful Scripts
I'm pretty proud of my bash-cache utility, which implements a decorator pattern in Bash. Define a function, pass it to bc::cache, and like magic the function is wrapped with a caching layer.
- Been meaning to share this bash memoization library for a while; it uses a decorator pattern to transparently add a caching layer to functions
- Been meaning to share this function memoization library for a while; it uses a decorator pattern to wrap functions with a transparent caching layer
spaceship-prompt
-
Is there any way to remove the first newline from Starship Prompt?
There are solutions in this GH issue discussion: https://github.com/spaceship-prompt/spaceship-prompt/issues/677
- Spaceship – Minimalistic, powerful and customizable Zsh prompt
- spaceship-prompt v4.7.0 introduces OCaml support. It displays the version of OCaml in the prompt within OCaml projects (opam, esy or pure ocaml are supported)
- spaceship-prompt v4.7.0 introduces Perl support. It displays the version of Perl in the prompt within Perl projects.
- spaceship-prompt v4.7.0 introduces Scala support. It displays the version of the Scala compiler in the prompt within Scala projects.
-
Fell in love with nord colorscheme
Shell - zsh with spaceship prompt
- bun.sh vs create-react-app
- Um terminal funcional e de respeito
- Zim – The Zsh configuration framework with blazing speed and modular extensions
-
"Oh My ZSH!"
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
What are some alternatives?
fancy-git - That's a terminal prompt changer that shows a few cool git informations about your repository state. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)
starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
pure - Pretty, minimal and fast ZSH prompt
ohmyzsh - 🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
mini-prompt - 🦊 Minimal and versatile bash prompt
kube-ps1 - Kubernetes prompt info for bash and zsh
bkt - a subprocess caching utility, available as a command line binary and a Rust library.
pyenv-virtualenv - a pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)
sbp - Simple Bash Prompt (SBP) is a bash prompt, which strives to be simple. But it isn't. But it looks kind of nice. I think.
powerlevel10k - A Zsh theme
prompt.gem - A collection of shell scripts to customize your prompt, distributed as a ProfileGem gem.
direnv - unclutter your .profile