posh-git
powerline
posh-git | powerline | |
---|---|---|
18 | 22 | |
7,419 | 14,195 | |
- | 0.3% | |
0.0 | 4.3 | |
about 2 months ago | 27 days ago | |
PowerShell | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
posh-git
-
PowerShell: The object-oriented shell you didn't know you needed
Ah if you want auto completion for native commands they need to be registered first. PSReadLine provides autocompletion support but it only works by default with things builtin to PowerShell itself. For `git` there is a fairly popular module called posh-git [1] that provides auto completion support for some of the well known commands. Git for Windows also calls it out [2]. You can also provide your own custom auto complete calls with Register-ArgumentCompleter [3]. Hope this helps!
[1] https://github.com/dahlbyk/posh-git
-
The bash book to rule them all
PowerShell: https://github.com/dahlbyk/posh-git/blob/master/src/GitPromp...
I believe this is clean Bash code and clean PowerShell code, and a script with a certain complexity. The functions inside the Bash script are documented using comments, the ones inside the PowerShell script are documented using "structured comments" (similar to javadoc/xmldoc/...). The parameters of the functions inside the PowerShell script also contain metadata which is used to provide completion on the commandline and similar functionality as the command line flags you demonstrated.
I just learned about 'getopts' in Bash, which you can actually also use to implement parameters to a Bash function. So what you are showing on a script level, can also be applied for functions. Did not know about that.
Still, not saying PowerShell is better than Bash in a Linux context, but it seems a lot of Linux users have a gut reaction to right out reject PowerShell. I think it does have some advantages for certain use cases, like more complex scripts, a cross-platform context, ... and of course, for someone with a .NET background it's easier to program more complex things with it.
- Stuck trying to execute a ps1 from my github repo
-
Kitsch-Prompt - golang based cross-platform shell prompt
Starship is pretty slick, but I feel like it's lacking in the customization department. It's easy to get it to display whatever you want, but hard to get it to show it exactly how you want it. If you want a "powerline" style prompt, that's basically impossible in Starship (although it's one of the most upvoted feature requests). Or using color gradients on the prompt - I have this 16.7M color display, why am I limited to flat colors? Finally I'm a big fan of posh git, and Starship doesn't have the ability to display anything like this natively. I used a custom command to run a modified version of posh-git for a long time, but it wasn't very fast.
-
What is the name of the cli tool that shows your current branch and changes you've made?
If you're on Windows, I've used posh-git in the past.
- Repos and PowerShell
- posh-git
- Adding Git autocomplete to PowerShell (Windows)
-
I just discovered aliases and I'm looking for more.
The Posh-Git module for showing Git repo details in the prompt.
-
How to increase productivity at work with a pretty Windows Terminal and smart Powerline tools
Install Posh-Git using this command:
powerline
- Powerline arrows bugged
-
How do you work with buffers?
Powerline (and airline, as well as all plugins of that kind) offers, among other things, a GUI that helps you manage buffers and tabs. There are plugins that do just that and nothing else, which are best used alongside powerline/airline/etc, for example bufferline.
- How can I replicate?
-
Is Vim worth the investment?
Powerline Provides a much nicer status line in Vim, including integration with Git to tell you what branch you’re on and the tracking status of the file you’re working on.
-
What is the name of the cli tool that shows your current branch and changes you've made?
powerline includes prompts for bash and zsh that include git info. (despite selling itself as a vim statusline, I believe you can use its shell prompts without using it with vim.)
-
What are these characters? They look sort of like shurikens
Could also be a patched font. Some fonts use the private use area of unicode to draw glyphs for use in interface. Check out for example these patched fonts for Powerline on GitHub. Powerline is a status line plugin for vim and it uses text to draw the interface. If you download one, drop it on a font visualizer e.g. fontdrop.info you'll see a range of specific glyphs inside the private use area (E000–F8FF). There's even an Ubuntu logo at E0FF.
-
Getting an error message when trying to use nvim after installing alacritty
You are wrong
-
After years on Linux, I just discovered Vim & TMUX. They're fucking amazing.
Wait until you discover that you can apply powerline to both of them
-
Add Powerline glyphs to IBM Plex fonts
IBM Plex is an interesting font that I'm looking forward to, and I would like to try it out. However, you may be in similar setup as I am, which relays on Powerline glyphs in order to display vim/statusline/prompt correctly.
-
How do I make my terminal like this pic? it shows different colours depending the status of git file.
Looks like I installed this one via apt-get. To use it, I have this in my ~/.config/fish/fish.config:
What are some alternatives?
oh-my-posh - The most customisable and low-latency cross platform/shell prompt renderer
nerd-fonts - Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
Git Credential Manager for Windows
starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
GitExtensions - Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
vim-airline - lean & mean status/tabline for vim that's light as air
GitLink - Making .NET open source accessible!
oh-my-fish - The Fish Shell Framework
Bonobo Git Server - Bonobo Git Server for Windows is a web application you can install on your IIS and easily manage and connect to your git repositories. Go to homepage for release and more info.
spaceship-prompt - :rocket::star: Minimalistic, powerful and extremely customizable Zsh prompt
LibGit2Sharp - Git + .NET = ❤
kube-ps1 - Kubernetes prompt info for bash and zsh