-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Shell Configuration
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to shell configuration on Linux, covering Arch Linux, CachyOS, and other distributions including Bash, Zsh, Fish, and shell customization.
Bash is default:
# Check version
bash --version
# Usually pre-installedEdit bashrc:
# Edit bashrc
vim ~/.bashrc
# Or bash_profile
vim ~/.bash_profileCommon settings:
# Aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Prompt
PS1='[\u@\h \W]\$ '
# History
HISTSIZE=1000
HISTFILESIZE=2000Install Zsh:
# Arch/CachyOS
sudo pacman -S zsh
# Debian/Ubuntu
sudo apt install zsh
# Fedora
sudo dnf install zshChange to Zsh:
# Change shell
chsh -s /bin/zsh
# Log out and back inInstall oh-my-zsh:
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Edit zshrc:
# Edit zshrc
vim ~/.zshrc
# Reload
source ~/.zshrcInstall Fish:
# Arch/CachyOS
sudo pacman -S fish
# Debian/Ubuntu
sudo apt install fish
# Fedora
sudo dnf install fishChange to Fish:
# Change shell
chsh -s /usr/bin/fish
# Log out and back inEdit config:
# Edit config
vim ~/.config/fish/config.fishBash prompt:
# Edit bashrc
vim ~/.bashrc
# Custom prompt
PS1='[\u@\h \W]\$ 'Create aliases:
# Add to shell config
alias ll='ls -alF'
alias la='ls -A'
alias ..='cd ..'Check shell:
# Check current shell
echo $SHELL
# Check available shells
cat /etc/shellsCheck config:
# Bash
cat ~/.bashrc
# Zsh
cat ~/.zshrc
# Reload
source ~/.bashrcThis guide covered shell configuration for Arch Linux, CachyOS, and other distributions, including Bash, Zsh, Fish, and customization.
- Terminal Emulators - Terminal setup
- System Configuration - System setup
- ArchWiki Shell: https://wiki.archlinux.org/title/Command-line_shell
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.