Add .gitconfig and install.sh
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
3aee19333c
commit
035ca90868
4 changed files with 43 additions and 0 deletions
|
@ -8,6 +8,7 @@ if [[ $- == *i* && -f $HOME/.bashrc ]]; then
|
||||||
. $HOME/.bashrc
|
. $HOME/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If we are on tty1 we start the x-server
|
||||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
startx && exit
|
startx && exit
|
||||||
fi
|
fi
|
||||||
|
|
9
.gitconfig
Normal file
9
.gitconfig
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[user]
|
||||||
|
email = severin.kaderli@gmail.com
|
||||||
|
name = Severin Kaderli
|
||||||
|
|
||||||
|
[alias]
|
||||||
|
l = log --pretty=oneline -n 20 --graph --abbrev-commit
|
||||||
|
s = status
|
||||||
|
a = add --all
|
||||||
|
c = commit -s -m
|
|
@ -1,2 +1,8 @@
|
||||||
# dotfiles
|
# dotfiles
|
||||||
My Linux configuration files.
|
My Linux configuration files.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
1. Clone the repository
|
||||||
|
2. Run ./install.sh
|
||||||
|
|
27
install.sh
Normal file
27
install.sh
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Author: Severin Kaderli <severin.kaderli@gmail.com>
|
||||||
|
#
|
||||||
|
# Usage: ./install.sh
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
# Setting up git configuration
|
||||||
|
ln -s "$DIR/.gitconfig" "$HOME/.gitconfig"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# We link all important files
|
||||||
|
ln -s "$DIR/.bash_profile" "$HOME/.bash_profile"
|
||||||
|
ln -s "$DIR/.bashrc" "$HOME/.bashrc"
|
||||||
|
ln -s "$DIR/.profile" "$HOME/.bashrc"
|
||||||
|
ln -s "$DIR/.xinitrc" "$HOME/.xinitrc"
|
||||||
|
ln -s "$DIR/.Xresources" "$HOME/.Xresources"
|
||||||
|
ln -s "$DIR/.config/i3" "$HOME/.config/i3"
|
||||||
|
|
||||||
|
# Symlinking scripts directory and giving execute permissions
|
||||||
|
ln -s "$DIR/bin" "$HOME/bin"
|
||||||
|
chmod +x "$HOME/bin/*"
|
||||||
|
|
||||||
|
# Activate crontab file
|
||||||
|
crontab -u $USER "$DIR/.crontab"
|
Loading…
Add table
Add a link
Reference in a new issue