OmeGak / dotfiles

The ultimate bastion for my dotfiles and more
MIT License
6 stars 2 forks source link

Improve zsh prompt #10

Closed OmeGak closed 3 years ago

OmeGak commented 11 years ago

Probably, the best way to go is using one of the oh-my-zsh themes.

In any case, some inspiration:

Related issues #4 and #5.

OmeGak commented 9 years ago

tis: https://github.com/powerline/powerline and tis: https://github.com/bling/vim-airline and tis too: https://github.com/itchyny/lightline.vim

OmeGak commented 9 years ago

On branch unpushed status.

At the moment, unpushed means that there is something to push to the tracked branch. Tracked branch doesn't necessarily mean that that's the one you are going to be pushing to. For instance, having remote.pushdefault = origin and push.default = current configured will make a branch tracking upstream/feature to be pushed by default to origin/feature. Unpushed should only mean local branch is out of sync (behind/ahead) of remote branch it will be pushed.

Since git 2.5.0, the reference @{push} can be used to check the commits that will be pushed to the default . If there is any commit when git log @{push}.. then the local branch has unpushed commits and the prompt will reflect this.

I would also add two more flags:

OmeGak commented 8 years ago

After 45979047538dab30477e9a60ddcb1ea5f4f8b434, let's see if it's worth integrating vim-airline in the prompt. promptline seems promising: https://github.com/edkolev/promptline.vim

OmeGak commented 3 years ago

Done in 9aa73c97682b9a2239a9b00dcbf1c7dbf98c7723 with https://starship.rs/.