- Fast.
- Minimal.
- Lightweight.
- Works on
BASH
,ZSH
,DASH
,YASH
. SorryASH
. - Works on macOS but you need
oh-my-zsh
installed. - POSIX compliant (to a certain extent).
toledo
was an attempt to create a minimal prompt that had git functionality. It's a slew of borrowed ideas that worked well together.
Manual
git clone https://github.com/mmatongo/toledo.git
# Inside your .bashrc, .zshrc, etc.
. /path/to/toledo
You can customize the prompt character by modifying the lambda λ
sign on line 62 .
export PS1="\$(parse_git_branch) \$(parse_git_dirty) λ "
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)
gcl <user_name> <repo_name> [<dir_name>] [-gh | -gl]
- <user_name>: the GitHub or GitLab username that owns the repository.
- <repo_name>: the name of the repository.
- <dir_name> (optional): the name of the directory where the repository will be cloned. If not provided, it will use the name of the repository. -gh or -gl (optional): specify whether to clone from GitHub (-gh) or GitLab (-gl). The default is GitHub.
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.