Skip to content

dkharrat/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Personal bash and vim configuration files.

Installation

git clone https://github.com/dkharrat/dotfiles.git ~/dotfiles
cd ~/dotfiles
./install.sh

This will:

  • Back up existing dotfiles to ~/dotfiles_old/
  • Create symlinks from ~/.bashrc, ~/.vimrc, etc. to this repo
  • Initialize vim plugins

Customization

Machine-Specific Settings

Create these optional files for per-machine customization:

  • ~/.bashrc_init - Sourced first, before any rc files (for environment variables)
  • ~/.bashrc_custom - Sourced last, for overrides and custom aliases

Prompt Colors by Environment

The prompt displays user@host in different colors based on environment. Set HOST_ROLE in ~/.bashrc_init:

# Production server - red prompt
export HOST_ROLE=prod

# Staging server - yellow prompt
export HOST_ROLE=staging

# Local/dev (default) - green prompt
# No configuration needed

Vim Plugins

Plugins are managed via Pathogen and included as git submodules:

Adding a Plugin

git submodule add https://github.com/user/plugin.git vim/bundle/plugin

Requirements

Requires full vim (not vim-tiny) for complete functionality:

sudo apt install vim

About

My personal dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors