Configure Fedora Linux Bash Shell and Terminal

This blog post provides some guidance for configuring the bash shell and Christian Hergert’s Terminal 47.10 that come with Fedora Linux.

Configuring the Terminal software seems relatively straightforward, and also provides a method to learn and set keyboard shortcuts. Press Super (Windows) and type term to find Terminal, then right-click and select Preferences. Alternatively, while Terminal is running, click the three bars icon at the top right to see a menu of configuration options.

The best way to configure the bash shell itself is to cause its initialization to invoke custom configuration files. The quick and easy way to configure the bash shell is to edit ~/.bashrc directly. For now, I copied shell configuration content from the following files directly into ~/.bashrc:

While I no longer need to consider Windows specifics such as disk letter paths and the wslpath command, I am using .jdrc without modification.

Also in ~/.bashrc, I set the shell prompt, commented a variable definition in case I remember why I once needed it, and added an alias to start VSCodium.

export PS1='\n[\D{%F %T}]:\[\033[01;32m\]\u@\h\[\033[00m\]:\!:\[\033[01;34m\]\w\[\033[00m\]\n$ '
#export LC_ALL=en_US.UTF-8
alias code='flatpak run com.vscodium.codium'

One thought on “Configure Fedora Linux Bash Shell and Terminal

Leave a comment