Mshell is a collection of addition aliases, prompt setup and misc helpful things for POSIX shells. Offers far far more on Zsh but will also offer better aliases and prompts for Bash.
git clone https://github.com/moarpheus/mshell --recursive ~/.mshell && ~/.mshell/install
If you don't have brew then the install
script won't install some of the tools which add better output & features over some terminal stalwarts.
If that's the case, you can install what you want from the following:
bat
, cat but with colours, search and line numbersdiff-so-fancy
, a much nicer diff, especially for use withgit
htop
, top with graphs, search and process treencdu
, a better du which automatically summarises thingsprettyping
, ping with graphs
There are some tools I only use at work or on a personal machine.
These also rely on Homebrew but can be triggered with:
make work
Both Bash and Zsh get better aliases and helper functions- see the functions and aliases files for details.
ZSH users now get many (and more) benefits of oh-my-zsh without the slow start time
- Better tab completion menus (shows commands, files, variables and users)
- Valid commands turn green as typed to help reduce typos
- Suggestions are made if you typo a command
- History sub-string search (type part of a command and use the up & down arrow keys to search)
- Nicer
kill
andssh
completion menus
ZSH users will get a lightly modified version of the gorgeous Pure prompt, modified to show the Ruby version if it is different from the global ruby (assuming you're using ASDF or rbenv).
Main features include:
- Prompt changes to red when previous command failed
- If the previous command takes more than 5 seconds, the next prompt show the running time
- Up arrow shows if you have a commit to push to git
- Down arrow shows if you have commits waiting to be pulled; the prompt polls your git origin in the background!
- Ruby version appears if this folder has a local ruby version set
- Prompt is wonderful and makes you happier