Code Monkey home page Code Monkey logo

shgit's People

Contributors

krlmlr avatar roeme avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

krlmlr

shgit's Issues

Show ahead-behind info and perhaps "dirty" flag

I think the +x-y or = indicators that git-sh had are helpful to understand quickly if a push/pull action is needed. How many syscalls do we need for:

git for-each-ref --format="%(upstream:track)%(upstream:trackshort)" refs/heads/master

The "dirty" indicator would be nice to have too.

Port other completions from git-sh

Only after playing with shgit I realized how much I'm relying on the autocomplete features of git-sh, in particular for aliases. What needs to be done to make them available here?

Add unit tests for CI

Implement some kind of automated testing, so we can implement CI, and maybe CD. This is also of some importance since I'd like to target more than one version of bash (and even zsh, maybe?), and maybe even some other platforms and stuff.

NL at EOF?

Most .sh files are missing a final newline. I have tried to work around with editorconfig, but this isn't supported with my editor: editorconfig/editorconfig-vscode#153.

Do you feel strongly about newlines at EOF? Would an .editorconfig that enables this setting only for this project help?

Import aliases

I have defined quite a few aliases which I'd like to have available as top-level commands in a Git shell. git-sh had this, would you support this here too?

Store installation configuration in a separate file

./install.sh install writes two entries in the Git config that contain absolute paths. I'd rather exclude these parts from the global Git config.

For me, the following works:

.gitconfig

[include]
	path = .gitconfig.shgit

.gitconfig.shgit

[shgit]
	quiet-init = true
	prompt-command-mode = stealthy
	verbose-exec = true
	location = /.../git/shgit
[alias]
	sh = !'/.../git/shgit/shgit.sh'

Should ./install.sh default to writing an external file and adding only an include?

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.