Giter VIP home page Giter VIP logo

bashy's Introduction

Hello! I'm Pablo.

I'm a developer working remotely from Pontevedra (Galiza galiza).

⚛️ I use ReactJS + Typescript + Bun.sh to build websites like vimcolors.org

⌨ I use Swift to build macOS apps like SwiftShift

🌙 I use Lua to build Neovim plugins like unclutter.nvim

💬 I speak Spanish + Galician + English

🔗 pablopunk.com

stats

bashy's People

Contributors

applewiskey avatar pablopunk 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

Watchers

 avatar  avatar  avatar

bashy's Issues

Faster and worse?

I've found a way to make bashy even faster:

git diff-files --no-ext-diff --quiet || git diff-index --no-ext-diff --quiet --cached HEAD

Problem

It doesn't know about untracked files, and I really don't wanna give up that feature 😭

Home folder

Show ~ instead of folder name when you are in $HOME

[Feature request] Support for folders inside git trees

The current behavior only works if the current folder is a git repo. It doesn't work if the folder is in a git repo.

You can test if a directory is inside a git tree with

git rev-parse --is-inside-work-tree &>/dev/null

git rev-parse --is-inside-work-tree will print true or false. However, it will send fatal: Not a git repository (or any of the parent directories): .git to STDERR, so adding &>/dev/null prevents either STDOUT or STDERR from printing to the screen.

Wrong symbol

Reproduce error

~/repos/bashy at pure ✓ # no changes. All good.
~/repos/bashy at pure ✓ echo "change" >> readme.md  # I change one file
~/repos/bashy at pure • # change detected. All good
~/repos/bashy at pure • git add -A # I add the file to the commit
~/repos/bashy at pure ✓ # branch clean cause it's staged. All good
~/repos/bashy at pure ✓ echo "another change" >> readme.md # I make a second change
~/repos/bashy at pure + # HERE is the error. This should show the modified symbol

This happens because the output of git status --porcelain after the second
change is MM readme.md instead of M readme.md like in the first change.

How to change color and set symbol bold

First off, thanks a lot for this awesome prompt. Love it 💙

I've managed to change the color of the foreground symbol to green, but I am struggling with the following:

- How to set symbol to bold

  • How to add color to repo and branch text

I am grateful for any help with this. Thanks in advance!

EDIT: Seems the bold was already there, just not clearly visible in Tilda terminal. In Gnome terminal it works well.

Prompt bug browsing history

When you press the UP arrow to navigate through the history,
eventually the prompt is deleted and the history overlaps the whole line.

This also happens when the current command exceeds the terminal width,
which can be solved escaping PS1 with export PS1="\[$(bashy)\] $ "
but the history problem is still happening.

I had this error before, and it was because not escaping the 0 length
characters like $bold in the PS1 variable. The problem now is that
in bashy I'm not setting the variable itself, I just use echo to print it,
and escaping these variables (\[$bold\]) doesn't work cause those
characters are just for variables and not for echo.

BTW, consider using printf instead of echo. It doesn't solve the problem
but is better for compatibility.

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.