Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.46 KB

README.md

File metadata and controls

63 lines (44 loc) · 2.46 KB

Adshell

Makes your Zsh (or Bash) environment just that little bit more awesome

Adshell 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.

Installation

git clone https://github.com/AdamWhittingham/adshell --recursive ~/.adshell && ~/.adshell/install

Optional tools to install for more awesomeness

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 numbers
  • diff-so-fancy, a much nicer diff, especially for use with git
  • htop, top with graphs, search and process tree
  • ncdu, a better du which automatically summarises things
  • prettyping, ping with graphs

Optional: Work/Personal

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 make personal

Customisations

Both Bash and Zsh get better aliases and helper functions- see the functions and aliases files for details.

ZSH Customisations

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 and ssh completion menus

ZSH Prompt

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