<root> / install (59188e1e3234aed9be2bd2b81b11d3425275c75d) (2,037B) (mode 100755) [raw]
#!/bin/bash

# install .bashrc
if [ -f ~/.bashrc ]; then
    echo 'Skipping ~/.bashrc ...'
else
    if [ x"$OS" != x'Windows_NT' ]; then
        ln -s ~/.files/bashrc ~/.bashrc
    else
        echo 'source ~/.files/bashrc' > ~/.bashrc
    fi
fi

# install .profile
if [ -f ~/.profile ]; then
    echo 'Skipping ~/.profile ...'
else
    if [ x"$OS" != x'Windows_NT' ]; then
        ln -s ~/.files/profile ~/.profile
    else
        echo 'source ~/.files/profile' > ~/.profile
    fi
fi

# install .lesskey
if [ -f ~/.lesskey ]; then
    echo 'Skipping ~/.lesskey ...'
else
    if [ x"$OS" != x'Windows_NT' ]; then
        ln -s ~/.files/lesskey ~/.lesskey
    fi
fi

# compile .lesskey to get up-to-date version of .less
if [ ~/.lesskey -nt ~/.less ]; then
    if [ x"$OS" != x'Windows_NT' ]; then
        lesskey
    elif which lesskey > /dev/null 2>&1; then
        lesskey -o ~/.less -- ./lesskey
    else
        echo 'Skipping generating ~/.less, lesskey not found ...'
    fi
else
    echo "Skipping generating ~/.less, it's already up-to-date ..."
fi

# install .inputrc
if [ -f ~/.inputrc ]; then
    echo 'Skipping ~/.inputrc ...'
else
    if [ x"$OS" != x'Windows_NT' ]; then
        ln -s ~/.files/inputrc ~/.inputrc
    else
        echo '$include ~/.files/inputrc' > ~/.inputrc
    fi
fi

# install .tmux.conf
if [ -f ~/.tmux.conf ]; then
    echo 'Skipping ~/.tmux.conf ...'
else
    if [ x"$OS" != x'Windows_NT' ]; then
        ln -s ~/.files/tmux.conf ~/.tmux.conf
    else
        echo 'source-file ~/.files/tmux.conf' > ~/.tmux.conf
    fi
fi

# install .screenrc
if [ -f ~/.screenrc ]; then
    echo 'Skipping ~/.screenrc ...'
else
    if [ x"$OS" != x'Windows_NT' ]; then
        ln -s ~/.files/screenrc ~/.screenrc
    else
        echo 'source ~/.files/screenrc' > ~/.screenrc
    fi
fi

# install .tigrc
if [ -f ~/.tigrc ]; then
    echo 'Skipping ~/.tigrc ...'
else
    if [ x"$OS" != x'Windows_NT' ]; then
        ln -s ~/.files/tigrc ~/.tigrc
    else
        echo 'source ~/.files/tigrc' > ~/.tigrc
    fi
fi
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dotfiles

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dotfiles

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master