GithubHelp home page GithubHelp logo

adamwhittingham / adshell Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 7.0 8.37 MB

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

Shell 97.60% Ruby 1.97% AppleScript 0.02% Makefile 0.07% Lua 0.34%

adshell's Introduction

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

adshell's People

Contributors

adamwhittingham avatar bt-pinger avatar dantherussell avatar peregrine42 avatar richardvickerstaff avatar yedennek avatar zenonas avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

adshell's Issues

type bat not found

It seems to me that there is a small bug in the aliases file on the line 84

if ( type bat > /dev/null ) ; then
  alias cat='bat'
fi

When you run that on MacOS (10.14.3), it gives you an error

-bash: type: bat: not found

Nothing serious, but it appears everytime I open up new tab in terminal and it just annoying a bit :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.