This script provides a number of useful and entertaining features for users of the bash shell.
-
🌟 Use your like Ranger File Manager: Navigate your file system in a visually appealing way, similar to the ranger file manager.
-
💻 CD Like GUI: Use a graphical interface to navigate directories.
-
🎨 Get colorful List Command: See a colorful and organized list of the files and directories in your current location.
-
📂 Show All the files in Dir: Display all the files and directories in a given directory.
-
📜 Get a clean Cat Command output: View the contents of a text file with syntax highlighting and other visual enhancements.
-
🧹 Clean Interface: Enjoy a user-friendly interface with easy-to-use commands.
- 📦 Install these packages before installing the script: exa or lsd, fzf, bat, devour, micro.
📸 ScreenShots
Follow these steps to install the script:
cd ~
git clone https://github.com/naiyanrahman/CD-RC
cd CD-RC
ls
- Add CD-RC/bashrc Code to your .bashrc file
- Add -CD-RC/inputrc code to /etc/inputrc
Aliases are short commands that allow you to execute a longer command or series of commands with a single word. These aliases can save you time and make it easier to use the terminal.
These aliases allow you to manage packages on your system using the Pacman package manager:
add
: Installs a package on your system.remove
: Removes a package from your system.clean
: Cleans up the package cache to save disk space.up
: Updates the package database and installs any available updates.upp
: Updates the package database and installs any available updates, including those that require a system reboot.
These aliases allow you to manage your system:
restart
: Reboots the system.search
: Searches the package database for a package.
These aliases make it easier to use the terminal:
r
: Reloads the shell configuration file (.bash_profile
or.zshrc
).del
: Deletes a file or directory, including all subdirectories and files.c
: Clears the terminal screen.untar
: Extracts files from a tar archive.ls
: Lists the files and directories in the current directory in a colorful and organized way, using theexa
command.la
: Lists all files and directories in the current directory in a colorful and organized way, using theexa
command.ll
: Lists the files and directories in the current directory in a long format, using theexa
command...
: Goes up one directory.cd.2
: Goes up two directories.cd.3
: Goes up three directories.cd.4
: Goes up four directories.cd.5
: Goes up five directories.cd.6
: Goes up six directories.
These aliases make it easier to use Git:
gcl
: Clones a Git repository.gac
: Stages all changes and commits them with a message.
mkcd
: Makes a new directory and enters it.nis
: Installs a package and saves it as a dependency in thepackage.json
file.cat
: Shows the contents of a file with syntax highlighting and other visual enhancements, using thebat
command.bconf
: Opens the.bashrc
file in themicro
text editor.zconf
: Opens the.zshrc
file in themicro
text editor.battery
: Shows the battery status of the system.
Alias | Description | Example |
---|---|---|
add |
Installs a package using apt . |
add vlc |
remove |
Removes a package using apt . |
remove vlc |
clean |
Removes unnecessary packages and clears the package cache using apt autoremove and apt clean . |
clean |
up |
Updates the package list and upgrades installed packages using apt update and apt upgrade . |
up |
upp |
Updates the package list and upgrades installed packages, including changing dependencies using apt update and apt dist-upgrade . |
upp |
restart |
Reboots the system using systemctl reboot . |
restart |
search |
Searches for packages using apt-cache search . |
search vlc |
r |
Reloads the ~/.bash_profile file. |
r |
del |
Deletes a file or directory and all its contents recursively using rm -rf . |
del /path/to/file |
c |
Clears the terminal screen using clear . |
c |
untar |
Extracts a tar archive using tar -zxvf . |
untar /path/to/archive.tar.gz |
ls |
Lists the contents of a directory using exa with the options -a , -G , --icons , --color=always , and --group-directories-first . |
ls |
la |
Lists the contents of a directory, including hidden files, using exa with the options -al , -G , --icons , --color=always , and --group-directories-first . |
la |
ll |
Lists the contents of a directory in long format using exa with the options -l , -G , --icons , --color=always , and --group-directories-first . |
ll |
.. |
Changes to the parent directory. | cd .. |
cd.2 |
Changes to the directory two levels up. | cd.2 |
cd.3 |
Changes to the directory three levels up. | cd.3 |
cd.4 |
Changes to the directory four levels up. | cd.4 |
cd.5 |
Changes to the directory five levels |
To use an alias, simply type the alias command in the terminal followed by any necessary arguments.
For example, to update and upgrade all packages using the up
alias, you would type:
up
add
: installs a packageremove
: uninstalls a packageclean
: autoremoves all unnecessary packagesup
: updates and upgrades all packagesupp
: updates and performs a full upgrade of all packagesrestart
: reboots the systemsearch
: searches for a packager
: sources the~/.bashrc
filedel
: deletes a file or directory (use with caution!)c
: clears the terminal screenuntar
: extracts a tar archivels
: lists files and directories in a directoryla
: lists all files and directories in a directoryll
: lists files and directories in a directory in long format..
: moves up one directory levelcd.2
: moves up two directory levelscd.3
: moves up three directory levelscd.4
: moves up four directory levelscd.5
: moves up five directory levelscd.6
: moves up six directory levelsgcl
: clones a git repositorymkcd
: creates a new directory and moves into itnis
: installs a npm package and saves it to thepackage.json
filegac
: adds all changes and commits them with a messagecat
: displays the contents of a file with syntax highlightingbconf
: opens the~/.bashrc
file in themicro
text editorzconf
: opens the~/.zshrc
file in themicro
text editor