sd
meteor-util
sd | meteor-util | |
---|---|---|
8 | 2 | |
699 | 3 | |
- | - | |
3.5 | 10.0 | |
2 months ago | almost 8 years ago | |
Shell | JavaScript | |
MIT License | BSD 3-clause "New" or "Revised" 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.
sd
-
Which command did you run 1731 days ago?
Prefixing these utility scripts is a nice tip, I used to do that as well.
Some time ago I found https://github.com/ianthehenry/sd though. It's a light wrapper around your own scripts which provides namespaces, autocompletion, custom help texts + some other QoL enhancements around that. It improves discoverability and usability a lot, very happy with it.
-
CLI user experience case study
A few things that can help with memory:
- spaced repetition for stuff that you use sporadically. I use Anki, it's great. For how to use it, this article is great: https://borretti.me/article/effective-spaced-repetition. I've found a positive feedback loop where the more I know how to do things without looking anything up, the more I use the CLI, the easier I remember things, the more things I discover, etc. I read once that when learning a new language, you should aim for content where you know 80%/90% already. It seems to be true for learning the CLI, and especially for integrating that learning into my day to day job.
- sd (https://github.com/ianthehenry/sd) for lowering the cost of creating a "documented alias". Before that I made aliases with either alias, or bash functions, all starting with "," to quickly see all which are "mine" (I read that trick in an article that I can't find), now the more complex stuff is in sd with some documentation.
- SD: My script directory
-
sd: your script directory
Yeah :( https://github.com/ianthehenry/sd/issues/9
The trouble is `sd` is just so easy to type on a qwerty keyboard, and it's such a nice mnemonic for "script directory." I've thought about renaming it, but I can't think of anything I like nearly as much.
-
Start all of your commands with a comma (2009)
zsh can do this if you set the PATH_DIRS option, but if I remember right it doesn't autocomplete deeply nested directories, just one level.
I made a little tool that dispatches hierarchical commands in a slightly nicer way, with intelligent autocomplete with command descriptions: https://github.com/ianthehenry/sd
meteor-util
-
CLI user experience case study
Definitely not my idea, but is encouraged by built-in tools like python's argparse [0] or node's util.parseArgs [1] which definitely guide you toward's this "short"/"long" style.
[0]: https://docs.python.org/3/library/argparse.html
[1]: https://nodejs.org/api/util.html#utilparseargsconfig
- How Many Smart Packages are there in Meteor.js's official repository?
What are some alternatives?
bash-ctx - Make working on multiple projects a breeze!
comma - Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau] [Moved to: https://github.com/nix-community/comma]
sd - Intuitive find & replace CLI (sed alternative)
sad - CLI search and replace | Space Age seD
repo-cmd - Small unified framework for git-ignored scripting
garden - Garden grows and cultivates collections of Git trees ~ Official mirror of https://gitlab.com/garden-rs/garden
direnv - unclutter your .profile
just - 🤖 Just a command runner
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.