Skip to content

gfargeas/linux_configuration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux configuration files

Compatible with Ubuntu, Red Hat, OSX and Cygwin.

Installation

git clone https://github.com/Lucas-C/linux_configuration.git
BASHRC_DIR=$PWD/linux_configuration
cd $HOME
for f in .gemrc .gitconfig .inputrc .minttyrc .vimrc; do [ -e $f ] && echo "Backing up $f" && mv $f{,.bak}; ln -s $BASHRC_DIR/$f; done
echo "source $BASHRC_DIR/.bashrc" >> .bashrc
echo 'exec /bin/bash' > .profile

Any .bashrc_* file in $BASHRC_DIR will be sourced.

To use screen, create an empty ~/.use_screen file. Similarly, you can create ~/.use_tmux.

The .zshrc file is here to invoke bash even if zsh is the default shell.

Enabling pre-commit hooks

Install Yelp pre-commit hooks and then :

cd $BASHRC_DIR
pre-commit install

Defining git user identity

Keep it separate from your git configuration by putting it in a file named .gitconfig_user, in $BASHRC_DIR:

[user]
    name = ...
    email = ...

If such file exists, it will be sourced from the main .gitconfig.

About

My dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 34.2%
  • Shell 23.9%
  • JavaScript 6.9%
  • HTML 5.7%
  • C++ 4.6%
  • Jupyter Notebook 4.0%
  • Other 20.7%