.bashrc
ConfigurationThe .bashrc
file is a script that runs every time a new terminal session is started in Unix-like operating systems. It is used to configure the shell session, set up aliases, define functions, and more, making the terminal easier to use and more powerful. Below is a summary of the key sections and functionalities defined in the provided .bashrc
file.
git clone --depth=1 https://github.com/ChrisTitusTech/mybash.git
cd mybash
chmod +x setup.sh
./setup.sh
fastfetch
, bash-completion
, and system-specific configurations (/etc/bashrc
).alias cp='cp -i'
makes the cp
command interactive, asking for confirmation before overwriting files.extract()
for extracting various archive types, and cpp()
for copying files with a progress bar.PROMPT_COMMAND
variable is set to automatically save the command history after each command.nvim
(NeoVim) as the default editor.cat
with bat
.ls
, grep
, and man
.alias ..='cd ..'
to go up one directory.trash
instead of rm
for deleting files, to prevent accidental data loss.z
, zi
, or pressing Ctrl+f to launch zi to see frequently used navigation directories.distribution()
to identify the Linux distribution.install_bashrc_support()
to automatically install necessary utilities based on the system type.apacheconfig()
for Apache server configurations.This .bashrc
file is a comprehensive setup that not only enhances the shell experience with useful aliases and functions but also provides system-specific configurations and safety features to cater to different user needs and system types. It is designed to make the terminal more user-friendly, efficient, and powerful for an average user.