Giter Club home page Giter Club logo

linux_configuration's Introduction

Linux configuration files

Compatible for 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.

Atom

As admin:

h=/cydrive/c/Users/$USER
for f in $BASHRC_DIR/.atom/*; do
    newf=$h/.atom/$(basename $f)
    [ -f $newf ] && mv $newf{,.bak}
    cmd /c mklink $(cygpath -w $newf) $(cygpath -w $f)
done

Notepad++

As admin:

h=/cydrive/c/Users/$USER
for f in $BASHRC_DIR/npp/*.xml; do cmd /c mklink $(cygpath -w $h/AppData/Roaming/Notepad++/)$(basename $f) $(cygpath -w $f); done
cmd /c mklink /d $(cygpath -w $h/AppData/Roaming/Notepad++/themes) $(cygpath -w $BASHRC_DIR/npp/themes)

linux_configuration's People

Contributors

lucas-c avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.