Coder Social home page Coder Social logo

athul / shelby Goto Github PK

View Code? Open in Web Editor NEW
187.0 2.0 15.0 32.04 MB

Shelby is a fast ⚡️ , lightweight ☁️ , minimal✨, shell prompt written in Go.

Home Page: https://athul.github.io/shelby

License: GNU General Public License v3.0

Go 100.00%
golang shell shell-prompt zsh fast minimal prompt

shelby's Introduction

Build Status Go Report Card

Shelby is a fast ⚡️ ,lightweight ☁️ ,minimal✨, shell prompt written in Pure Go.


Installation

Follow the steps below(Linux and macOS), and Post Installation Instructions

$ curl -sf https://gobinaries.com/athul/shelby | sh

OR For macOS Users, install via Homebrew

brew install athul/tap/shelby

OR

  • Download the binary from the WorkFlow Artifacts(Only for Linux)
  • You might wanto to make the binary executable, run chmod +x <binary_name>
  • Move the Binary to /usr/local/bin/

Build From Source

  • Clone the Repo
  • Run go get -v
  • Run go build
  • Move the Binary to ~/.local/bin/shelby

Post Installation Instructions

You must have to add the below code to either the .bashrc or .zshrc or .profile file inorder to Shelby to fully work.

The prompt symbol is and changes to red if the previous command exited with an error.

Bash

Add this to your .bashrc file:

eval "$(shelby init bash)"

Zsh

Add this to your .zshrc file:

eval "$(shelby init zsh)"

Extra Bits

  • Displays the Current Git Branch
  • shows if any staged files are present
  • [+] shows if you've got Untracked Files
    • [2+] shows if you've got 2 untracked files
  • [!] shows if you've got Unstaged Files
    • [3!] shows if you've got 3 unstaged files
  • if your HEAD is ahead
  • if your HEAD is behind
  • if your HEAD is diverged
  • Dispalys any VirtualENVs you're working in
  • Displays Username and Hostname of the machine while in SSH
  • Small Size(~=2MB)

Inspired From

Code reused from ❤️

Support My work

Donations

Donation: UPI ID: athul8720@oksbi

Logo Made by Sreeram aka @fillerink

The Installation Script can be found at https://github.com/athul/autom

shelby's People

Contributors

adtya avatar athul avatar ssiyad avatar thetronjohnson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shelby's Issues

Add Code documentation

Hello @athul ,
Nice to see this beautiful art from you!

It would be very helpful if you are adding documentation in code.

add prebuild binary for raspberry 3B+

Hi there,

I want you build your prompt on my parpberry 3B+, but I don't get it, it's my first attempt to build a go project.

~/source/shelby [master|✔] $ sh -c "$(curl -sL https://git.io/ishelby)"
athul/shelby crit platform linux/armv7 is not supported. Make sure this script is up-to-date and file request at https://github.com/athul/shelby/issues/new

go get -v
error: unknown switch `v'

go build
error: Pfadspezifikation 'build' stimmt mit keinen git-bekannten Dateien überein.

Since the raspi is a very small device a prebuild binary where really great. :-)

Just a question, is this compalibe with tmux ?

thanks and regads Micha

Easier setup

Like starship, perhaps simpler lines to add in bashrc :

eval `$(starship init bash)`

Also, in README it would be much more clear if the Usage instructions are included right after install. It's confusing for a newbie. Enjoy ? Can't enjoy unless it's made the default shell.

User/Hostname Support Support

Mostly while using SSH , showing the hostname and username and uname will be super helpful to split between tabs and understanding stuff

Brew update depracted warning

System: M1 Mac 2020
OS: Big Sur 11.5.2

Issue: While running brew upgrade or brew install results in the following error

Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the athul/tap tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/athul/homebrew-tap/Formula/shelby.rb:6

Add more icons for git actions

Adding more icons to Git processes like

  • Ahead or Behind
  • Staged but not commited
  • Stashed
    etc....

This will only be possible after #13

could you add a space after the prompt symbol?

Maybe this is not an issue outside of z-shell on Void Linux, but for me there is a lack of a space after the  symbol making the command annoyingly right up against the symbol. If you could add a space (or tell me what I need to append one using an environmental variable) I would appreciate it immensely.

show root user all the time

Hey,

would it be possible to add a config variable or option to show the the user root if I'am logged in as user 0.

Thanks
Micha

Terminal Gif

Soory For Missusing the issues panel.
But if it please , can u tell me which application/webpage you used to create that beautifull terminal gif in readme.md

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.