Skip to content

Latest commit

 

History

History
89 lines (58 loc) · 1.48 KB

README.md

File metadata and controls

89 lines (58 loc) · 1.48 KB

💥 Bash config

Screenshot 01

🛠 Quick Guide

📦 Prerequisites

  • bash

  • git

  • fzf

  • fd

    sudo apt install bash bash-completion git fzf fd

⚡ Setup

  • Backup your .bashrc, if any:

    mv -v ~/.bashrc ~/.bashrc.bak
  • Clone the repository to your local machine:

    git clone --depth=1 https://github.com/ndachj/dotf; cd dotf
  • Copy the .config/bash directory to ~/.config:

    export BDOTDIR="$HOME/.config/bash"
    mkdir -p $BDOTDIR
    cp -rv .config/bash ~/.config
  • Symlink .profile to ~/.bash_profile:

    ln -sf "$BDOTDIR/.profile" ~/.bash_profile
  • Change the default login shell:

    sudo chsh ${USER} -s /bin/bash
  • Now logout and login back for changes to take effect.

⌨️ Hacking

🌐 plugins

📂 File Structure

~/.config/bash
  ├── .bashrc
  ├── git-completion.bash
  └── git-prompt.sh

💤 Uninstall

To uninstall bash config
  • Remove the $BDOTDIR and .bash_profile:

    rm -rfv "$BDOTDIR" ~/.bash_profile
  • Then restore your original .bashrc:

    mv ~/.bashrc.bak ~/.bashrc