Just wanted to share my custom bash setup. I'll include my alacritty.yml for fun as well. Hope someone likes it. I built this using a few guides on different sites/repositories with credit given. I've found this all to be super useful/fun and hope someone else will also. I'm putting this up here for all to use and build upon. Free and open!
This all goes into your home folder in the structure on here. File structure should look like the following:
~
|-- .bashrc
|-- .config
| `-- bashrc
| |-- .bashrc_prompt
| |-- .bashrc_shortcuts
| |-- .bashrc_startup
| `-- LS_COLORS
`-- README.md
# If you want to use the alacritty.yml it goes here
~
|-- .config
| `-- alacritty
| `-- alacritty.yml
The main file that the bash shell looks for. Should be saved to your home folder.
~/
# OR
/home/<username>
This file is basically the default one installed by Linux Mint 19.3, but with a few modifications.
The only important parts to change are:
- Adding this at the end:
# Include custom bashrc files.
for i in ~/.config/bashrc/.bashrc_* ; do
if [ -r "$i" ]; then
. $i
fi
done
- Commenting out this prompt portion, if you use the .bashrc_prompt file:
### Set in ~/.config/bashrc/.bashrc_prompt
#if [ "$color_prompt" = yes ]; then
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#else
# PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
#fi
Displays the splash/welcome (turtle[cowsay]/neofetch) info and sets up LS_COLORS
For the splash screen to work you need to install cowsay, fortune, and neofetch.
apt install fortune
apt install fortunes
apt install cowsay
apt install neofetch
Note: if any of these are not installed it won't show, but will not error. It just skips over that part.
For LS_COLORS to setup, the LS_COLORS file needs to be in place.
The LS_COLORS file I use, pulled from github, link in credits
The customization of the prompt that's so nice. Read it over, it's heavily commented
A whole lot of useful aliases and functions. Read them over comment out what you don't want or learn them ;)
Here are a few screen shots (font and color shades are terminal dependant):
Let me know if anyone wants my conky config
I used quite a few different sources to build my custom bashrc setup. I've modified quite a bit from where I pulled from. Feel free to fork, use, and do what you like with this. Give credit to sources and myself.