Skip to content

Customize terminal to display current path, git branch and number of changed files

License

Notifications You must be signed in to change notification settings

nicumicle/terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Customize your terminal

This script will allow you to customize your terminals without the need of installing anything.

It will display the current user, the current path, and when inside a git repository, it will display the branch name and the number of modified files.

Requirements

  • GIT

Setup

  • Clone this repository
  • Edit the file ~/.bashrc or ~/.profile and add the following code at the end of the file:
CUSTOM_BASH_DESIGN_FILE_PATH=~/.bash_design 
if [ -f $CUSTOM_BASH_DESIGN_FILE_PATH ]; then
    . $CUSTOM_BASH_DESIGN_FILE_PATH
fi

Please make sure to replace CUSTOM_BASH_DESIGN_FILE_PATH value with the path for .bash_design file from your cloned repository.

Screenshots

Terminal in a non GIT folder

terminal 1

Terminal in a GIT folder with no files modified

terminal 2

Terminal in a GIT folder with one modified file

terminal 3

Tested on OS:

  • Ubuntu 20.04
  • Ubuntu 18.04

Tested with terminals

  • gnome-terminal
  • Terminator

About

Customize terminal to display current path, git branch and number of changed files

Topics

Resources

License

Stars

Watchers

Forks