Skip to content

A .bash_profile project I worked on to customize my terminal.

Notifications You must be signed in to change notification settings

jbaham2/bash_profile

Repository files navigation

.bash_profile for custom terminal

=================================

This is my custom terminal I did as a weekend project. The prompt features the standard user name, the working directory, and the git status on the first line; as well as, the active virtual environment (if applicable) and a prompt "->" on the second line.

The status will indicate whether the working directory "clean" or "dirty" to represent whether or not there or files that need to be staged.

Also, if the current directory does not have a .git repo then the git notification will not appear in the window.

What's it look like


Terminal Screenshot


The code is not all mine. In fact, I mostly just hacked together examples I liked around the internet:

####Status

This is a working profile, but there are some tweaks I would like to make in the future: *where the (git:branch:status) is displayed I would like for the "git" to be replaced with the repo name like so (repo_name:branch:status). I couldn't figure this part out. *I would also like to display the number of files waiting to be committed if the status="dirty"; otherwise, display nothing. (repo:branch:status:# of new, modified files).

About

A .bash_profile project I worked on to customize my terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages