Personal dotfiles for customizing my Linux environment , it can work on any other linux Distro . A clean, consistent, and portable setup that can be easily reproduced across machines.
- Git
- Bash (version 4.0+)
- Package manager (pacman for Arch-based distros)
Before starting, make sure no
.bashrcor.bash_profileexists in~, or back them up manually.
# Clone the repository
git clone https://github.com/necromancer/dotfiles.git ~/dotfiles
# Navigate to the repo
cd ~/dotfiles
# Make the installer executable
chmod +x install.sh
# Run the installer
./install.sh- Backs up any existing dotfiles (
.bashrc,.bash_profile) to~/.dotfiles_backup_<date> - Installs required packages if missing (
figlet,lolcat,cowsay,fortune) - Sets up Oh My Bash if not already installed
- Creates symbolic links from the repository to your home directory
- Sets appropriate permissions
# Backup existing files
mkdir -p ~/.dotfiles_backup
[ -f ~/.bashrc ] && mv ~/.bashrc ~/.dotfiles_backup/
[ -f ~/.bash_profile ] && mv ~/.bash_profile ~/.dotfiles_backup/
# Create symbolic links
ln -sf ~/dotfiles/bash/.bashrc ~/.bashrc
ln -sf ~/dotfiles/bash/.bash_profile ~/.bash_profile
# Install Oh My Bash (optional)
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"Edit the OSH_THEME variable in .bashrc:
# Change from
OSH_THEME="powerline"
# To any theme from Oh My Bash
OSH_THEME="agnoster" # or "minimal", "pure", etc.Add new aliases to the appropriate section in .bashrc:
# --- Custom Aliases ---
alias myalias='command'