-
Notifications
You must be signed in to change notification settings - Fork 0
Instructions
TomfromBerlin edited this page Feb 5, 2023
·
6 revisions
- Download the repo as zip file and extract the content into your home folder. Or use git.
- If you haven't already done so, back up your current ~/.*rc, e.g. with
mv -iv ~/.bashrc ~/bashrc.old
orcp -i ~/.bashrc ~/bashrc.old
- Do not use bashrc.backup as the name or place the file by that name in the backup directory created by this script when opening a terminal window. With such a name, it will most likely be overwritten the next time an interactive shell is started. This also applies if you boot your system into the command prompt instead of the graphical environment, since you are then also in an interactive shell.
- Copy the files from the newly created directory to ~/ (your home) and ~/.shellcfg/ respectively.
If you cannot see the dot-files and the .shellcfg-directory in your favorite file manager, you need to enable "Show hidden files". (Do not forget to backup your current files. Just saying!)
- If you're using this in a shell other than the Bourne Again Shell (bash), you'll need to rename the .bashrc file, e.g., in .kshrc if you use the Korn-Shell (ksh).
- Start an interactive shell (means: open a terminal).
- If something goes wrong, it's no drama. Just rename your backup files to their original names and you'll be fine.
- You have backup files, right?
When you downloaded the zip file use the following commands:
$ cd ~
$ cp -i .bashrc bashrc.old
$ unzip bashrc-main.zip
$ cd bashrc-main
$ cp -iR .bashrc .shellcfg ~/
$ cd ~
$ source .bashrc
If you're using git
, the directory will be just called bashrc and you don't have to extract the files. In this case you can use the following commands:
$ cd ~
$ cp -i .bashrc bashrc.old
$ git clone https://github.com/TomfromBerlin/bashrc
$ cd bashrc
$ cp -iR .bashrc .shellcfg ~/
$ cd ~
$ source .bashrc
git
should be installed by default on your Linux box. If not, just type sudo apt-get install git
(or according to your distribution's command) in the command line and press Enter.
❗ | There is absolutely no warranty, that these files work. They may damage your system. USE IT AT YOUR OWN RISK! |
---|---|
❗ | If you want to use these files in shells other than bash, the code must be adapted for other shells. |