Home

Awesome

:package: toledo

<h2 align="center"> A fast and extremely minimal shell prompt with git tracking. </h2> <p align="center"> <img src="img/0.png" alt="toledo" width="450px" /> </p>

Features

Table of Contents

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

What Is It

toledo was an attempt to create a minimal prompt that had git functionality. It's a slew of borrowed ideas that worked well together.

Installation

Manual

git clone https://github.com/mmatongo/toledo.git
# Inside your .bashrc, .zshrc, etc.
. /path/to/toledo

Prompt Character

You can customize the prompt character by modifying the lambda λ sign on line 62 .

export PS1="\$(parse_git_branch) \$(parse_git_dirty) λ "

Usage

The script also includes several useful Git aliases:

gs: git status

gd: git diff

gc: git commit -m

gp: git push

gcb:git checkout -b

gco: git checkout

gf: git fetch

gcl: clone_repo (an alias for git clone)

clone_repo usage

gcl <user_name> <repo_name> [<dir_name>] [-gh | -gl]

Screenshots

Initial Screen

init

Untracked File [?]

untracked

Modified File [*]

modified

Renamed File [~]

renamed

Deleted File [-]

deleted

Switch Branch

switch

Branch is ahead [!]

ahead

New file Added [+]

new

Branch is behind [ˬˬ]

behind

MISC recommendations

As is toledo is pretty functional and can be used as your daily shell prompt, however if you want extra functionality consider using it alongside oh-my-zsh or anything similar.