This repository contains a stylish and functional `.bashrc` configuration. It features a colorful prompt that includes the current time, username, and supports bash completion.
note: before installation you need backup your original configuration file
- backup the origin config file
cat ~/.bashrc > ~/bashrc.backup
- backup the origin config file
cat ~/.zshrc > ~/zshrc.backup
- Time Display: Shows the current time in the prompt.
- Username Display: Shows the current user's username.
- Bash Completion: Provides autocomplete functionality for commands, file names, and more.
- Colorful Prompt: A visually appealing and informative prompt with multiple colors.
- auto-suggestions
- history file
- find command
- etc..
- clone the repository
==git clone https://github.com/XplDan/template-bashrc-conf.git==
- Replace the file
==cd /path/to/directory-template==/
cp bashrc > ~/.bashrc
Feel free to customize the .bashrc file to suit your preferences. You can change the colors, add more information to the prompt, or include additional functionalities. No need to worry, there are several color templates available that have already been made.
The colors in the prompt are defined using ANSI escape codes. Here are some common codes you can use:
Color | Code | Description |
---|---|---|
Black | \033[0;30m |
Black |
Red | \033[0;31m |
Red |
Green | \033[0;32m |
Green |
Yellow | \033[0;33m |
Yellow |
Blue | \033[0;34m |
Blue |
Purple | \033[0;35m |
Purple |
Cyan | \033[0;36m |
Cyan |
White | \033[0;37m |
White |
you can see template color stackoverflow
If you have suggestions or improvements, feel free to create an issue or submit a pull request.
Enjoy your new, colorful bash prompt!
- before your installation you need install the file depence.txt
- pacman
pacman -Syyu - < depence.txt