Skip to content

me-js-bro/Bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My personl Bash Customization

Short Description

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.


Here are some screenshos

Styles


Features

A short video

bash-git.mp4

Before Installation

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.

Features

  1. Shortcuts
  2. Some functions for install, uninstall, check updates, update packages and so on
  3. Syntax Highlighting
  4. Auto Suggestions
  5. Fuzzy finder
  6. Tree view of directories, files and sub directories
  7. Memorizing the directories
  8. Command spell correction
  9. Git branch name and left commits
  10. Some cool looking themes
  • Why don't you explore by yourself? ( 0 _ 0 )

Installation

Direct Installation

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)

Manual Installation

  • 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

Edit alias & functions

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.


Command Shortcuts

1) Directory Navigation and File Management

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

2) Updated, Install & Uninstall Related

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).

3) Git Related

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.

4) Changing Style

Shortcut Command Description
style bash ~/.bash/change_prompt.sh Execute a script that changes the style of the bash