Those who don't want to install and configure any other shell like the zsh
or the fish
shell, want to stay in the default bash
, also want to make the experience of the bash more easy, can easily install this configuration. Just simply run the install.sh
script. It will install some necessary packages and a github repo. And then you can enjoy the configuration.
bash-git.mp4
Make sure you install any of the nerd font's and set that font in your terminal, so that the prompt look nice. I suggest to use the JetBrains Mono Nerd Font
. Just visit Here and download the font and install it using your Font Manager. Then set the font in your Terminal.
- Shortcuts
- Some functions for install, uninstall, check updates, update packages and so on
- Syntax Highlighting
- Auto Suggestions
- Fuzzy finder
- Tree view of directories, files and sub directories
- Memorizing the directories
- Command spell correction
- Git branch name and left commits
- Some cool looking themes
- Why don't you explore by yourself? ( 0 _ 0 )
You can directly run the command bellow and it will automaticly clone the repository and install the config. Before that make sure you have curl
installed in your system. If not, simply install it using pacman
, dnf
, zypper
or apt
.
- Run this command in your terminal:
bash <(curl https://raw.githubusercontent.com/me-js-bro/Bash/main/direct_install.sh)
- Open terminal and run these commands.
git clone --depth=1 https://github.com/me-js-bro/Bash.git
cd Bash
chmod +x install.sh
./install.sh
Simply go to ~/.bash
directory. Inside it, you will find .bashrc
, alias
and function
file. Just edit these files and you are good to go. Also if you want to add your custom bash prompt, just go to ~/.bash/change_prompt.sh
file and add your prompt.
Shortcut | Command | Description |
---|---|---|
cd |
cd |
Change directory. If the directory does not exist, it will ask to create it. |
downloads |
cd ~/Downloads |
Change to the Downloads directory. |
pictures |
cd ~/Pictures |
Change to the Pictures directory. |
videos |
cd ~/Videos |
Change to the Videos directory. |
dir |
mkdir |
Make a directory. |
file |
touch |
Create a file. |
rm |
rm -rf |
Remove both files and directories. |
srm |
sudo rm -rf |
Remove both files and directories with the sudo command |
ebash |
code .bash |
Open .bash directory with the vs code to edit |
Shortcut | Command | Description |
---|---|---|
cu |
paru/yay -Qua / checkupdates , sudo dnf check-update or sudo zypper list-updates |
Checks system updates (Arch, Fedora, OpenSuse. Also prints both Official and Aur updates in Arch Linux). |
update |
paru/yay -Syyu , sudo dnf upgrade , sudo zypper update , or sudo apt-get update |
Updates the system packages (Arch, Fedora, OpenSuse, Debian/Ubuntu). |
install |
paru/yay -S , sudo dnf install , zypper install , or apt-get install |
Install package (Arch, Fedora, OpenSuse, Debian/Ubuntu). |
remove |
paru/yay -Rns , sduo dnf remove , sudo zypper remove , or sudo apt-get remove |
Uninstall package (Arch, Fedora, OpenSuse, Debian/Ubuntu). |
Shortcut | Command | Description |
---|---|---|
add |
git add . |
Add. |
clone |
git clone |
Clone a repository. |
cloned |
git clone --depth=1 |
Clone a repository with depth 1. |
commit |
git commit -m |
Commit with a message. |
push |
git push |
Push changes to the remote repository. |
pushm |
git push -u origin main |
Push changes and set upstream to main. |
pusho |
git push origin [branch] |
Push to a specified branch. |
pull |
git pull origin [branch] |
Pull from a specified branch. |
info |
git info |
Git Information. |
Shortcut | Command | Description |
---|---|---|
style |
bash ~/.bash/change_prompt.sh |
Execute a script that changes the style of the bash |