-
-
Notifications
You must be signed in to change notification settings - Fork 2
Arch Linux Shell Configuration
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to shell configuration on Arch Linux, 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:
# Install Zsh
sudo pacman -S zsh
# Change shell
chsh -s /bin/zshInstall oh-my-zsh:
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Configure
vim ~/.zshrcInstall plugins:
# Edit zshrc
vim ~/.zshrc
# Add plugins
plugins=(git docker kubectl)Install Fish:
# Install Fish
sudo pacman -S fish
# Change shell
chsh -s /bin/fishConfigure Fish:
# Create config
mkdir -p ~/.config/fish
vim ~/.config/fish/config.fishBash prompt:
# Edit bashrc
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ 'Zsh prompt:
# Use oh-my-zsh themes
# Edit ~/.zshrc
ZSH_THEME="robbyrussell"Create aliases:
# Add to shell config
alias update='sudo pacman -Syu'
alias clean='sudo pacman -Sc'
alias orphans='sudo pacman -Rns $(pacman -Qdtq)'Check shell:
# Check current shell
echo $SHELL
# Change shell
chsh -s /bin/zsh
# Log out and back inThis guide covered Bash, Zsh, Fish configuration, and shell customization.
- Arch Linux Terminal Emulators - Terminals
- Arch Linux System Configuration - System setup
- ArchWiki Shell Configuration: https://wiki.archlinux.org/title/Command-line_shell
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.