Personal bash and vim configuration files.
git clone https://github.com/dkharrat/dotfiles.git ~/dotfiles
cd ~/dotfiles
./install.shThis will:
- Back up existing dotfiles to
~/dotfiles_old/ - Create symlinks from
~/.bashrc,~/.vimrc, etc. to this repo - Initialize vim plugins
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
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 neededPlugins are managed via Pathogen and included as git submodules:
- ctrlp.vim - Fuzzy file finder
- NERDTree - File explorer
- lightline.vim - Status line
git submodule add https://github.com/user/plugin.git vim/bundle/pluginRequires full vim (not vim-tiny) for complete functionality:
sudo apt install vim